Re: [ansible-project] when: ansible conditional's based on distribution major version

2019-08-27 Thread Jeffrey Agnitsch
That worked thank you very much! On Tuesday, August 27, 2019 at 10:29:28 AM UTC-5, Michael M wrote: > > Jeffrey, > > Try: > > when: ansible_distribution_major_version == '7' > > On Tue, Aug 27, 2019 at 8:07 AM Jeffrey Agnitsch > > wrote: > > > > I am trying to copy over .rpm files based on t

Re: [ansible-project] when: ansible conditional's based on distribution major version

2019-08-27 Thread Michael Mullay
Jeffrey, Try: when: ansible_distribution_major_version == '7' On Tue, Aug 27, 2019 at 8:07 AM Jeffrey Agnitsch wrote: > > I am trying to copy over .rpm files based on the major version of the > operating system I believe I am referencing the ansible_facts part > incorrectly does anyone have a

[ansible-project] when: ansible conditional's based on distribution major version

2019-08-27 Thread Jeffrey Agnitsch
I am trying to copy over .rpm files based on the major version of the operating system I believe I am referencing the ansible_facts part incorrectly does anyone have an example of the right way? tasks: - name: Copy kernel RHEL6 copy: src: /etc/ansible/files/individual_files/te