homelab/roles/base/tasks/ansible.yml

24 lines
540 B
YAML
Raw Permalink Normal View History

- name: 'Install Ansible dependency: python3-apt'
shell: 'apt-get update && apt-get install python3-apt -y'
args:
creates: /usr/lib/python3/dist-packages/apt
warn: false
2020-07-10 01:54:15 +00:00
- name: Install additional Ansible dependencies
apt:
2020-07-10 01:54:15 +00:00
name: "{{ item }}"
state: present
force_apt_get: true
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
file:
path: "~/.ansible/tmp"
state: directory
mode: 0700