updates
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- packages
|
- packages
|
||||||
|
- ansibleuser
|
||||||
19
roles/ansibleuser/tasks/main.yml
Normal file
19
roles/ansibleuser/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
- name: add ansible user
|
||||||
|
user:
|
||||||
|
name: ansible
|
||||||
|
system: yes
|
||||||
|
|
||||||
|
- name: set up sudo for ansible user
|
||||||
|
copy:
|
||||||
|
src: files/sudoer_ansible
|
||||||
|
dest: /etc/sudoers.d/ansible
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0440
|
||||||
|
|
||||||
|
- name: add ansible-pull cron job
|
||||||
|
cron:
|
||||||
|
name: ansible auto-provision
|
||||||
|
user: ansible
|
||||||
|
minute: "*/10"
|
||||||
|
job: ansible-pull -o -U https://github.com/DeveloperDurp/DesktopAnsible.git
|
||||||
Reference in New Issue
Block a user