2020-03-05 03:05:48 +00:00
|
|
|
- name: 'Install Ansible dependency: python3-apt'
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.shell: 'apt-get update && apt-get install python3-apt -y'
|
2019-12-15 04:12:59 +00:00
|
|
|
args:
|
2020-03-05 07:06:21 +00:00
|
|
|
creates: /usr/lib/python3/dist-packages/apt
|
2019-12-15 04:12:59 +00:00
|
|
|
warn: false
|
|
|
|
|
2020-07-10 01:54:15 +00:00
|
|
|
- name: Install additional Ansible dependencies
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.apt:
|
2020-07-10 01:54:15 +00:00
|
|
|
name: "{{ item }}"
|
2019-12-15 04:12:59 +00:00
|
|
|
state: present
|
|
|
|
force_apt_get: true
|
2021-03-13 06:13:06 +00:00
|
|
|
update_cache: true
|
2020-07-10 01:54:15 +00:00
|
|
|
loop:
|
|
|
|
- aptitude
|
|
|
|
- python3-docker
|
2022-08-12 01:04:07 +00:00
|
|
|
- python3-pymysql
|
2022-05-27 03:49:06 +00:00
|
|
|
- python3-psycopg2
|
|
|
|
|
|
|
|
- name: Create Ansible's temporary remote directory
|
2023-04-26 06:26:50 +00:00
|
|
|
ansible.builtin.file:
|
2022-05-27 03:49:06 +00:00
|
|
|
path: "~/.ansible/tmp"
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|