fix: setup after role install
This commit is contained in:
@ -1,22 +1,17 @@
|
||||
- name: Configure Docker all hosts
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- docker
|
||||
- geerlingguy.pip
|
||||
- docker
|
||||
vars:
|
||||
pip_install_packages:
|
||||
- name: docker
|
||||
- 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: six
|
||||
|
||||
# - name: Install 'six' module
|
||||
# ansible.builtin.pip:
|
||||
# name: six
|
||||
tasks:
|
||||
- name: Manually gather facts after 'six' is installed
|
||||
ansible.builtin.setup:
|
||||
|
||||
- name: Delete existing hello world container
|
||||
community.docker.docker_container:
|
||||
|
Reference in New Issue
Block a user