Skip to content

Commit

Permalink
fix bare variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
VilleS1 committed Jun 27, 2019
1 parent cd28e04 commit 383461a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
- name: template pam.d system-auth
template: src=system-auth.j2 dest=/etc/pam.d/system-auth
owner=root group=root mode=0644
when: pam_enabled
when: pam_enabled|bool

- name: template pam.d password-auth
template: src=system-auth.j2 dest=/etc/pam.d/password-auth
owner=root group=root mode=0644
when: pam_enabled
when: pam_enabled|bool

- name: template /etc/security/namespace.d/site.conf
template: src=site.conf.j2 dest=/etc/security/namespace.d/site.conf
owner=root group=root mode=0644
when: pam_enabled
when: pam_enabled|bool

- name: lineinfile add admin groups to /etc/security/access.conf
lineinfile: 'dest="/etc/security/access.conf"
regexp="(^\+\:{{ item }}\:ALL$)"
line="+:{{ item }}:ALL"'
register: reg_slurm_access_conf
with_items: "{{ slurm_access_groups }}"
when: pam_enabled and pam_enable_slurm
when: pam_enabled|bool and pam_enable_slurm|bool

- name: lineinfile deny all at the end of /etc/security/access.conf
lineinfile: 'dest="/etc/security/access.conf"
regexp="(^\-\:ALL\:ALL$)"
line="-:ALL:ALL"
insertafter="EOF"'
when: reg_slurm_access_conf is success and pam_enabled and pam_enable_slurm
when: reg_slurm_access_conf is success and pam_enabled|bool and pam_enable_slurm|bool

0 comments on commit 383461a

Please sign in to comment.