Commit 9b5d36e5 by e0d

more cleanup.

parent a3738a2a
......@@ -18,7 +18,10 @@ automated_role_name: automated
automated_user: "automator"
automated_home: "/home/automator"
automated_rbash_links: !!null
#
automated_sudoers_template: !!null
automated_sudoers_file: !!null
#
# OS packages
#
......
......@@ -68,10 +68,10 @@
- name: automated | create sudoers file from file
copy:
dest=/etc/sudoers.d/{{ automated_sudoers_file.split('/').pop() }}
dest=/etc/sudoers.d/{{ automated_sudoers_dest }}
src={{ automated_sudoers_file }} owner="root"
group="root" mode=0440 validate='visudo -cf %s'
when: automated_sudoers_file is defined
when: automated_sudoers_file
tags:
- automated
- install
......@@ -79,10 +79,10 @@
- name: automated | create sudoers file from template
template:
dest=/etc/sudoers.d/{{ automated_sudoers_file.split('/').pop() }}
dest=/etc/sudoers.d/{{ automated_sudoers_dest }}
src={{ automated_sudoers_template }} owner="root"
group="root" mode=0440 validate='visudo -cf %s'
when: automated_sudoers_template is defined
when: automated_sudoers_template
tags:
- automated
- install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment