Markus Katharina Brechtel 7 anni fa
parent
commit
e73bce9633
5 ha cambiato i file con 47 aggiunte e 0 eliminazioni
  1. +11
    -0
      tasks/ara.yml
  2. +9
    -0
      tasks/main.yml
  3. +1
    -0
      tasks/roles.yml
  4. +9
    -0
      tasks/setup_Debian.yml
  5. +17
    -0
      templates/ansible.cfg.j2

+ 11
- 0
tasks/ara.yml Vedi File

@@ -0,0 +1,11 @@
---

- name: Install ARA with pip
pip:
name: ara
state: present

- name: Get ARA's installed location
shell: python -c "import os,ara; print(os.path.dirname(ara.__file__))"
register: ara_location
changed_when: false

+ 9
- 0
tasks/main.yml Vedi File

@@ -2,6 +2,15 @@

- include: setup_Debian.yml

- include: ara.yml

- include: connection_plugin_lxc_ssh.yml

- include: ovh_module.yml

- name: ansible config
template:
src: ansible.cfg.j2
dest: /etc/ansible/ansible.cfg

- include: roles.yml

+ 1
- 0
tasks/roles.yml Vedi File

@@ -0,0 +1 @@
---

+ 9
- 0
tasks/setup_Debian.yml Vedi File

@@ -11,3 +11,12 @@
- uuid
- git
- python-jmespath
# ara required_packages:
- gcc
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt-dev
- python-dev
- python-setuptools
#- which

+ 17
- 0
templates/ansible.cfg.j2 Vedi File

@@ -0,0 +1,17 @@
[defaults]
nocows = 1
stdout_callback = skippy

# fix https://github.com/ansible/ansible/issues/20332
remote_tmp = $HOME/.ansible/tmp
local_tmp = $HOME/.ansible/tmp

library = /usr/share/ansible/modules

retry_files_enabled = False

callback_plugins = {{ ara_location.stdout }}/plugins/callbacks

[ssh_connection]
ssh_args = -o CheckHostIP=no -o StrictHostKeyChecking=yes
pipelining = True

Loading…
Annulla
Salva