2022-08-05 01:34:36 -03:00
|
|
|
# ansible-playbook Playbooks/01-A-OPENLDAP.yml -i Inventories/QA -vv -t 'deploy' --become-password-file .sudo_pass
|
|
|
|
|
|
|
|
- hosts: ubuntu_lxd
|
|
|
|
gather_facts: false
|
|
|
|
tags: deploy
|
|
|
|
vars:
|
|
|
|
DIR: "/home/renzo/PHPLDAPAdmin/"
|
|
|
|
tasks:
|
|
|
|
- ansible.builtin.file:
|
|
|
|
path: "{{DIR}}"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- ansible.builtin.copy:
|
|
|
|
src: files/PHPLDAPAdmin.tf
|
|
|
|
dest: "{{DIR}}"
|
|
|
|
|
|
|
|
#- 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: "{{DIR}}"
|
|
|
|
force_init: true
|
|
|
|
state: present
|
|
|
|
|