Make codi work on nanna
This commit is contained in:
@@ -1,28 +1,25 @@
|
||||
---
|
||||
- name: Update Docker configuration
|
||||
hosts: nanna
|
||||
hosts: gods
|
||||
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
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ item.name }}"
|
||||
uid: "{{ item.uid }}"
|
||||
group: "{{ item.name }}"
|
||||
state: "{{ item.state }}"
|
||||
create_home: false
|
||||
system: true
|
||||
loop:
|
||||
- name: postgres
|
||||
uid: 70
|
||||
state: present
|
||||
- name: hackmd
|
||||
uid: 1500
|
||||
state: present
|
||||
- name: gitea
|
||||
uid: 42001
|
||||
state: present
|
||||
- name: caddy
|
||||
uid: 42002
|
||||
state: present
|
||||
loop: "{{ gods_users }}"
|
||||
- name: Create Caddy network
|
||||
become: true
|
||||
community.docker.docker_network:
|
||||
@@ -74,6 +71,8 @@
|
||||
user: caddy
|
||||
- name: caddy_data
|
||||
user: caddy
|
||||
- name: codi_uploads
|
||||
user: hackmd
|
||||
# Since some docker-compose configuration might want to pull
|
||||
# images from the Gitea package repository, we need to ensure
|
||||
# that Gitea is reachable before those configurations are deployed.
|
||||
|
||||
Reference in New Issue
Block a user