ansible: change when conditions to use == instead of is when checking strings.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e4222545c1
commit
81fb4582e7
33 changed files with 135 additions and 135 deletions
|
@ -30,7 +30,7 @@
|
|||
package: state=present name={{ item }}
|
||||
with_items:
|
||||
- gnupg1
|
||||
when: ansible_distribution_major_version|int == 7 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int == 7 and ansible_distribution == 'RedHat'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
package: state=present name={{ item }}
|
||||
with_items:
|
||||
- gnupg
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
package: state=present name={{ item }}
|
||||
with_items:
|
||||
- gnupg
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora'
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
|||
|
||||
- name: Setup gpg link on rhel7
|
||||
file: state=link src=/usr/bin/gpg1 dest=/usr/bin/gpg
|
||||
when: ansible_distribution_major_version|int == 7 and ansible_distribution is 'RedHat'
|
||||
when: ansible_distribution_major_version|int == 7 and ansible_distribution == 'RedHat'
|
||||
|
||||
- name: add polkit rules to allow sigul user to access the smartcard/yubikey
|
||||
copy: src=00-sigul.rules dest=/etc/polkit-1/rules.d/00-sigul.rules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue