infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
commit 9a2d6b00a4ae9c63d75fe6dfa2c8fdd58883b8a3 parent c4ab5524094773ad7509dddf695e658e0bb28cd4 Author: Jul <jul@9o.is> Date: Fri, 17 May 2024 22:59:52 +0800 reorganize site playbook for proper initialization Diffstat:
| M | host/readme.md | | | 3 | ++- |
| M | host/site.yml | | | 15 | ++++++++------- |
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/host/readme.md b/host/readme.md @@ -2,6 +2,7 @@ ``` ansible-playbook site.yml --tags raw-setup --user root -ansible-playbook site.yml --user root +ansible-playbook site.yml --tags setup --user root +ansible-playbook site.yml --tags wireguard,k0s ``` diff --git a/host/site.yml b/host/site.yml @@ -8,16 +8,17 @@ - name: Setup hosts: servers + tags: setup roles: - - role: setup - tags: setup + - setup + - openssh - - role: openssh - tags: openssh +- name: Create Services + hosts: servers + roles: + - role: wireguard + tags: wireguard - role: k0s tags: k0s - - role: wireguard - tags: wireguard -