Added cron user and job. Added flatpak galaxy repo and a test install.

This commit is contained in:
Hyperling 2020-12-21 04:50:02 -06:00
parent 6ad79ea4c0
commit 07e97df5d8
6 changed files with 37 additions and 0 deletions

1
files/sudoers_hyper Normal file
View File

@ -0,0 +1 @@
hyper ALL=(ALL) NOPASSWD: ALL

0
inventory Normal file
View File

5
requirements.yml Normal file
View File

@ -0,0 +1,5 @@
---
# Galaxy Repos
# Flatpak resides here.
- community.general

6
tasks/cron.yml Normal file
View File

@ -0,0 +1,6 @@
- name: install cron job (ansible-pull)
cron:
user: hyper
name: "Ansible Sync"
minute: "*/5"
job: "/usr/bin/ansible-pull -o -U https://github.com/Hyperling/ansible.git > /dev/null"

13
tasks/packages.yml Normal file
View File

@ -0,0 +1,13 @@
- name: Install Repo Software
package:
name:
- htop
- neofetch
- sshfs
update_cache: yes
- name: Install Flatpaks
comunity.general.flatpak
state: present
name:
- com.discordapp.Discord

12
tasks/users.yml Normal file
View File

@ -0,0 +1,12 @@
- name: Create Ansible User
user:
name: hyper
system: yes
- name: Add Ansible Sudoers File
copy:
src: sudoers_hyper
dest: /etc/sudoers.d/ansible
owner: root
group: root
mode: 0440