Markus Katharina Brechtel před 7 roky
rodič
revize
e73bce9633
5 změnil soubory, kde provedl 47 přidání a 0 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

+ 9
- 0
tasks/setup_Debian.yml Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit