homelab/roles/base/tasks/ansible.yml

24 lines
588 B
YAML
Raw Normal View History

- name: 'Install Ansible dependency: python3-apt'
ansible.builtin.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
ansible.builtin.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
ansible.builtin.file:
2022-05-27 03:49:06 +00:00
path: "~/.ansible/tmp"
state: directory
mode: 0700