fix: setup after role install
This commit is contained in:
@ -1,22 +1,17 @@
|
|||||||
- name: Configure Docker all hosts
|
- name: Configure Docker all hosts
|
||||||
hosts: all
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
|
gather_facts: false
|
||||||
roles:
|
roles:
|
||||||
- docker
|
|
||||||
- geerlingguy.pip
|
- geerlingguy.pip
|
||||||
|
- docker
|
||||||
vars:
|
vars:
|
||||||
pip_install_packages:
|
pip_install_packages:
|
||||||
- name: docker
|
- name: six
|
||||||
- name: requests
|
|
||||||
tasks:
|
|
||||||
# - name: Ensure Python 3 and pip are installed
|
|
||||||
# ansible.builtin.raw: |
|
|
||||||
# sudo apt update && sudo apt install -y python3 python3-pip
|
|
||||||
# changed_when: false
|
|
||||||
|
|
||||||
# - name: Install 'six' module
|
tasks:
|
||||||
# ansible.builtin.pip:
|
- name: Manually gather facts after 'six' is installed
|
||||||
# name: six
|
ansible.builtin.setup:
|
||||||
|
|
||||||
- name: Delete existing hello world container
|
- name: Delete existing hello world container
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
Reference in New Issue
Block a user