Skip to content

Commit

Permalink
Merge pull request #4 from VilleS1/master
Browse files Browse the repository at this point in the history
fix bare variable warnings
  • Loading branch information
jabl authored Jun 27, 2019
2 parents cd28e04 + 383461a commit 272750d
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 272750d

Please sign in to comment.