Make codi work on nanna
This commit is contained in:
parent
c484a08a14
commit
65d7f868d2
@ -1,2 +1,15 @@
|
|||||||
---
|
---
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
gods_users:
|
||||||
|
- name: postgres
|
||||||
|
uid: 70
|
||||||
|
state: present
|
||||||
|
- name: hackmd
|
||||||
|
uid: 1500
|
||||||
|
state: present
|
||||||
|
- name: gitea
|
||||||
|
uid: 42001
|
||||||
|
state: present
|
||||||
|
- name: caddy
|
||||||
|
uid: 42002
|
||||||
|
state: present
|
||||||
|
@ -1,28 +1,25 @@
|
|||||||
---
|
---
|
||||||
- name: Update Docker configuration
|
- name: Update Docker configuration
|
||||||
hosts: nanna
|
hosts: gods
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Add groups
|
||||||
|
become: true
|
||||||
|
ansible.builtin.group:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
gid: "{{ item.uid }}"
|
||||||
|
state: "{{ item.state }}"
|
||||||
|
system: true
|
||||||
|
loop: "{{ gods_users }}"
|
||||||
- name: Add users for running containers
|
- name: Add users for running containers
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
|
group: "{{ item.name }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
create_home: false
|
create_home: false
|
||||||
system: true
|
system: true
|
||||||
loop:
|
loop: "{{ gods_users }}"
|
||||||
- name: postgres
|
|
||||||
uid: 70
|
|
||||||
state: present
|
|
||||||
- name: hackmd
|
|
||||||
uid: 1500
|
|
||||||
state: present
|
|
||||||
- name: gitea
|
|
||||||
uid: 42001
|
|
||||||
state: present
|
|
||||||
- name: caddy
|
|
||||||
uid: 42002
|
|
||||||
state: present
|
|
||||||
- name: Create Caddy network
|
- name: Create Caddy network
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
@ -74,6 +71,8 @@
|
|||||||
user: caddy
|
user: caddy
|
||||||
- name: caddy_data
|
- name: caddy_data
|
||||||
user: caddy
|
user: caddy
|
||||||
|
- name: codi_uploads
|
||||||
|
user: hackmd
|
||||||
# Since some docker-compose configuration might want to pull
|
# Since some docker-compose configuration might want to pull
|
||||||
# images from the Gitea package repository, we need to ensure
|
# images from the Gitea package repository, we need to ensure
|
||||||
# that Gitea is reachable before those configurations are deployed.
|
# that Gitea is reachable before those configurations are deployed.
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
docker_apt_arch: "amd64"
|
docker_apt_arch: "amd64"
|
||||||
docker_ubuntu_release: "{{ ansible_distribution_release }}"
|
docker_ubuntu_release: "{{ ansible_distribution_release }}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user