diff --git a/inventory/group_vars/openwrt.yml b/inventory/group_vars/openwrt.yml deleted file mode 100644 index 3e28929..0000000 --- a/inventory/group_vars/openwrt.yml +++ /dev/null @@ -1 +0,0 @@ -# OpenWRT-specific variables go here diff --git a/inventory/hosts b/inventory/hosts index 790c142..79d0a7c 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -3,12 +3,5 @@ # 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no" # Bare Metal Nodes 10.0.10.169 ansible_ssh_common_args="-o StrictHostKeyChecking=no" -# 10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no" -# 10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no" -# 10.0.10.64 ansible_ssh_common_args="-o StrictHostKeyChecking=no" - -[openwrt] -# Not enough storage space for these devices to support Ansible -# 10.0.10.1 -# 10.0.10.2 -# 10.0.10.3 \ No newline at end of file +10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no" +10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no" diff --git a/roles/tasks/debian/setup.yml b/roles/tasks/debian/setup.yml index e42b51a..0f3094d 100644 --- a/roles/tasks/debian/setup.yml +++ b/roles/tasks/debian/setup.yml @@ -62,6 +62,11 @@ state: latest - name: Install ACME shell: curl https://get.acme.sh | sh -s email="{{ ACME_EMAIL }}" + - name: Ensure ACME directory exists + file: + path: ~/.acme.sh/.ssh/ + state: directory + mode: "0700" - name: Enable Syncthing Service command: systemctl enable syncthing@root.service - name: Start Syncthing Service diff --git a/roles/tasks/debian/update.yml b/roles/tasks/debian/update.yml index 2f6a90b..25bf1dc 100644 --- a/roles/tasks/debian/update.yml +++ b/roles/tasks/debian/update.yml @@ -6,21 +6,17 @@ tasks: - name: Update Docker apt: - name: - - docker + name: docker update_cache: true autoremove: true state: latest - notify: Restart Docker Containers - name: Update all packages apt: + name: "*" update_cache: false autoremove: true state: latest - name: Update ACME command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade - - handlers: - # Restart Docker Containers on Docker Update - - name: Restart Docker Containers + - name: Restart All Services command: bash "/root/scripts/start_services.sh"