ansible_lxd_tests/Playbooks/01-A-OPENLDAP.yml

34 lines
963 B
YAML
Raw Normal View History

2022-07-28 20:52:07 -03:00
# ansible-playbook Playbooks/01-A-OPENLDAP.yml -i Inventories/QA -v -t 'deploy' --ask-become-pass
# ansible-playbook Playbooks/01-A-OPENLDAP.yml -i Inventories/QA -v -t 'deploy' --become-password-file
- hosts: ubuntu_lxd
gather_facts: false
tags: deploy
vars:
DIR: "~/OpenLDAP/"
tasks:
- name: Create a directory if it does not exist
ansible.builtin.file:
path: "{{DIR}}"
state: directory
mode: '0755'
- ansible.builtin.copy:
src: files/OpenLDAP.tf
dest: "{{DIR}}"
# Instalar terraform desde ansible con apt
# usar el socket sin sudo
# storage pool zfs
#- become: true
# ansible.builtin.shell: |
# apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
# apt install terraform
- become: true
community.general.terraform:
project_path: '/home/renzo/OpenLDAP'
force_init: true
state: present