ansible-manager/tasks/main.yml

31 lines
1023 B
YAML
Raw Normal View History

2018-12-01 15:50:59 +00:00
---
# tasks file for ansible-manager
- name: install ansible program
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
2019-01-08 21:03:09 +00:00
name: ['ansible', 'ansible-lint' , 'sshpass'] # not required. Name or list of names of the packages to install, upgrade, or remove.
update_cache: true
2018-12-01 15:50:59 +00:00
become: yes
- name: install ansible-aur-git
aur:
2020-06-04 20:22:44 +00:00
state: present
2018-12-01 15:50:59 +00:00
name: ansible-aur-git
use: yay
become: yes
become_user: aur_builder
2022-06-06 11:57:56 +00:00
- name: install hvac module for vault
pip:
name: hvac
2018-12-01 15:50:59 +00:00
2020-01-27 19:07:17 +00:00
- name: clone ansible git repository
git:
2018-12-01 15:50:59 +00:00
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).
2020-01-27 19:07:17 +00:00
repo: ssh://gitea@git.{{ domain.name }}/vincent/ansible.git # required. git, SSH, or HTTP(S) protocol address of the git repository.
2018-12-01 15:50:59 +00:00
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
force: no
update: no