ansible-manager/tasks/main.yml
vincent c0d92a4987
Some checks failed
continuous-integration/drone/push Build is failing
add hvac package
2022-06-06 13:57:56 +02:00

31 lines
1023 B
YAML

---
# tasks file for ansible-manager
- name: install ansible program
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name: ['ansible', 'ansible-lint' , 'sshpass'] # not required. Name or list of names of the packages to install, upgrade, or remove.
update_cache: true
become: yes
- name: install ansible-aur-git
aur:
state: present
name: ansible-aur-git
use: yay
become: yes
become_user: aur_builder
- name: install hvac module for vault
pip:
name: hvac
- name: clone ansible git repository
git:
dest: ~/Documents/ansible # required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).
repo: ssh://gitea@git.{{ domain.name }}/vincent/ansible.git # required. git, SSH, or HTTP(S) protocol address of the git repository.
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
force: no
update: no