Browse Source

ansible in own tasks file

master
parent
commit
4f17068645
3 changed files with 27 additions and 26 deletions
  1. +6
    -0
      tasks/ansible.yaml
  2. +3
    -1
      tasks/main.yml
  3. +18
    -25
      tasks/setup_Debian.yml

+ 6
- 0
tasks/ansible.yaml View File

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

- name: install ansible via pip
pip:
name: ansible
state: latest

+ 3
- 1
tasks/main.yml View File

@@ -2,9 +2,11 @@


- include_tasks: setup_Debian.yml - include_tasks: setup_Debian.yml


#- include_tasks: ara.yml
- include_tasks: ansible.yaml



- include_tasks: connection_plugin_lxc_ssh.yml - include_tasks: connection_plugin_lxc_ssh.yml
#- include_tasks: ara.yml


- include_tasks: ovh_module.yml - include_tasks: ovh_module.yml




+ 18
- 25
tasks/setup_Debian.yml View File

@@ -2,33 +2,26 @@


- name: install packages - name: install packages
apt: apt:
pkg: "{{item}}"
state: present
with_items:
- python-pip
- ipv6calc
- uuid
- git
- python-jmespath
# ara required_packages:
- gcc
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt-dev
- python-dev
- python-setuptools
- python-pymysql
#- which
- python-libcloud
- python-netaddr
pkg:
- python-pip
- ipv6calc
- uuid
- git
- python-jmespath
# ara required_packages:
- gcc
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt-dev
- python-dev
- python-setuptools
- python-pymysql
#- which
- python-libcloud
- python-netaddr


- name: uninstall debian ansible module - name: uninstall debian ansible module
apt: apt:
pkg: ansible pkg: ansible
state: absent state: absent

- name: install ansible via pip
pip:
name: ansible
state: latest

Loading…
Cancel
Save