瀏覽代碼

ara

master
Markus Katharina Brechtel 7 年之前
父節點
當前提交
e73bce9633
共有 5 個檔案被更改,包括 47 行新增0 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

+ 9
- 0
tasks/setup_Debian.yml 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存