mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2025-04-11 20:41:27 +08:00
Compare commits
4 commits
d7c89fc225
...
9cdf61ff0b
Author | SHA1 | Date | |
---|---|---|---|
9cdf61ff0b | |||
e304e5af8b | |||
0021833b44 | |||
19d3e3d02c |
4 changed files with 10 additions and 17 deletions
|
@ -1 +0,0 @@
|
||||||
# OpenWRT-specific variables go here
|
|
|
@ -3,12 +3,5 @@
|
||||||
# 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
|
# 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
|
||||||
# Bare Metal Nodes
|
# Bare Metal Nodes
|
||||||
10.0.10.169 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
|
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.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no"
|
||||||
# 10.0.10.141 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
|
|
||||||
|
|
|
@ -62,6 +62,11 @@
|
||||||
state: latest
|
state: latest
|
||||||
- name: Install ACME
|
- name: Install ACME
|
||||||
shell: curl https://get.acme.sh | sh -s email="{{ ACME_EMAIL }}"
|
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
|
- name: Enable Syncthing Service
|
||||||
command: systemctl enable syncthing@root.service
|
command: systemctl enable syncthing@root.service
|
||||||
- name: Start Syncthing Service
|
- name: Start Syncthing Service
|
||||||
|
|
|
@ -6,21 +6,17 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update Docker
|
- name: Update Docker
|
||||||
apt:
|
apt:
|
||||||
name:
|
name: docker
|
||||||
- docker
|
|
||||||
update_cache: true
|
update_cache: true
|
||||||
autoremove: true
|
autoremove: true
|
||||||
state: latest
|
state: latest
|
||||||
notify: Restart Docker Containers
|
|
||||||
- name: Update all packages
|
- name: Update all packages
|
||||||
apt:
|
apt:
|
||||||
|
name: "*"
|
||||||
update_cache: false
|
update_cache: false
|
||||||
autoremove: true
|
autoremove: true
|
||||||
state: latest
|
state: latest
|
||||||
- name: Update ACME
|
- name: Update ACME
|
||||||
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
|
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
|
||||||
|
- name: Restart All Services
|
||||||
handlers:
|
|
||||||
# Restart Docker Containers on Docker Update
|
|
||||||
- name: Restart Docker Containers
|
|
||||||
command: bash "/root/scripts/start_services.sh"
|
command: bash "/root/scripts/start_services.sh"
|
||||||
|
|
Loading…
Add table
Reference in a new issue