Mon, 22 Oct 2018 20:54:07 -0500
use https redirector now
73 | 1 | --- |
76 | 2 | - name: "Ansible control user" |
73 | 3 | user: |
4 | name: ansible | |
5 | comment: "Ansible Controller" | |
6 | home: /var/lib/ansible | |
7 | createhome: true | |
8 | append: true | |
9 | system: true | |
10 | state: present | |
11 | ||
76 | 12 | - name: "Ansible pubkeys" |
73 | 13 | authorized_key: |
14 | manage_dir: true | |
15 | user: ansible | |
16 | key: "{{item}}" | |
17 | with_file: | |
18 | - 'public_keys/ansible' | |
19 | ||
76 | 20 | - name: "Ansible sudo" |
73 | 21 | lineinfile: |
22 | dest: /etc/sudoers | |
23 | state: present | |
24 | regexp: '^ansible' | |
25 | line: 'ansible ALL=(ALL) NOPASSWD: ALL' | |
26 | validate: 'visudo -cf "%s"' | |
27 | ||
28 | - include: disable-stock.yml | |
29 | when: disable_stock_users |