Skip to content

Commit

Permalink
Merge pull request #168 from Normo/package-state
Browse files Browse the repository at this point in the history
Use package state 'present' since 'installed' is deprecated
  • Loading branch information
rndmh3ro authored Mar 26, 2018
2 parents 1159eb5 + 7c14931 commit 84d2063
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/modprobe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: install modprobe to disable filesystems | os-10
package:
name: '{{modprobe_package}}'
state: 'installed'
state: 'present'

- name: disable unused filesystems | os-10
template:
Expand Down
6 changes: 3 additions & 3 deletions tasks/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- name: install the package for strong password checking
apt:
name: '{{ os_packages_pam_passwdqc }}'
state: 'installed'
state: 'present'
update_cache: 'yes'
when: (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu') and os_auth_pam_passwdqc_enable

Expand All @@ -49,7 +49,7 @@
- name: install tally2
apt:
name: 'libpam-modules'
state: 'installed'
state: 'present'
when: (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu') and not os_auth_pam_passwdqc_enable and os_auth_retries > 0

- name: configure tally2
Expand All @@ -76,7 +76,7 @@
- name: install the package for strong password checking
yum:
name: '{{ os_packages_pam_passwdqc }}'
state: 'installed'
state: 'present'
when: ((ansible_os_family == 'RedHat' and ansible_distribution_version < '7') or ansible_distribution == 'Amazon') and os_auth_pam_passwdqc_enable

- name: remove passwdqc
Expand Down
2 changes: 1 addition & 1 deletion tasks/sysctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- name: install initramfs-tools
apt:
name: 'initramfs-tools'
state: 'installed'
state: 'present'
update_cache: true
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading

Expand Down

0 comments on commit 84d2063

Please sign in to comment.