Move ansible docker module python requirements to docker tasks
This commit is contained in:
parent
e6b6154043
commit
578f699cb7
3 changed files with 8 additions and 16 deletions
|
|
@ -22,6 +22,14 @@
|
||||||
name: geerlingguy.docker
|
name: geerlingguy.docker
|
||||||
tags: docker
|
tags: docker
|
||||||
|
|
||||||
|
- name: Install docker python requirements
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
loop:
|
||||||
|
- python3-yaml # for docker compose_v2
|
||||||
|
- python3-requests # for docker network
|
||||||
|
|
||||||
- name: Prepare all docker hosted containers
|
- name: Prepare all docker hosted containers
|
||||||
hosts: instance_system
|
hosts: instance_system
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
|
|
@ -34,14 +34,6 @@
|
||||||
# group: root
|
# group: root
|
||||||
# mode: 0600
|
# mode: 0600
|
||||||
|
|
||||||
- name: Install python requirements
|
|
||||||
ansible.builtin.package:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
loop:
|
|
||||||
- python3-yaml # for docker compose_v2
|
|
||||||
- python3-requests # for docker network
|
|
||||||
|
|
||||||
- name: Start the compose stack
|
- name: Start the compose stack
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_name: arr
|
project_name: arr
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
- name: Install python requirements
|
|
||||||
ansible.builtin.package:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
loop:
|
|
||||||
- python3-yaml # for docker compose_v2
|
|
||||||
- python3-requests # for docker network
|
|
||||||
|
|
||||||
- name: Ensure caddy network exists
|
- name: Ensure caddy network exists
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
name: caddy
|
name: caddy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue