This commit is contained in:
2022-10-29 14:18:15 +00:00
committed by GitHub
parent e0e1fa2f73
commit 26f126ce68
3 changed files with 21 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
---
- hosts: localhost
connection: local
become: true
roles:
- packages
- ansibleuser

View 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