diff --git a/files/sudoers_hyper b/files/sudoers_hyper new file mode 100644 index 0000000..f4fd71e --- /dev/null +++ b/files/sudoers_hyper @@ -0,0 +1 @@ +hyper ALL=(ALL) NOPASSWD: ALL diff --git a/inventory b/inventory new file mode 100644 index 0000000..e69de29 diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..e70530a --- /dev/null +++ b/requirements.yml @@ -0,0 +1,5 @@ +--- +# Galaxy Repos + +# Flatpak resides here. +- community.general diff --git a/tasks/cron.yml b/tasks/cron.yml new file mode 100644 index 0000000..f43b200 --- /dev/null +++ b/tasks/cron.yml @@ -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" diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..e43ab8d --- /dev/null +++ b/tasks/packages.yml @@ -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 diff --git a/tasks/users.yml b/tasks/users.yml new file mode 100644 index 0000000..d9e7f4a --- /dev/null +++ b/tasks/users.yml @@ -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