From 4f1706864594d57e083e38936428adbe91de4b9c Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 26 Oct 2018 15:52:52 +0000 Subject: [PATCH] ansible in own tasks file --- tasks/ansible.yaml | 6 ++++++ tasks/main.yml | 4 +++- tasks/setup_Debian.yml | 43 ++++++++++++++++++------------------------ 3 files changed, 27 insertions(+), 26 deletions(-) create mode 100644 tasks/ansible.yaml diff --git a/tasks/ansible.yaml b/tasks/ansible.yaml new file mode 100644 index 0000000..c77f3f0 --- /dev/null +++ b/tasks/ansible.yaml @@ -0,0 +1,6 @@ +--- + +- name: install ansible via pip + pip: + name: ansible + state: latest diff --git a/tasks/main.yml b/tasks/main.yml index 837ce13..43d2662 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,9 +2,11 @@ - include_tasks: setup_Debian.yml -#- include_tasks: ara.yml +- include_tasks: ansible.yaml + - include_tasks: connection_plugin_lxc_ssh.yml +#- include_tasks: ara.yml - include_tasks: ovh_module.yml diff --git a/tasks/setup_Debian.yml b/tasks/setup_Debian.yml index 053a3dd..f4b8028 100644 --- a/tasks/setup_Debian.yml +++ b/tasks/setup_Debian.yml @@ -2,33 +2,26 @@ - name: install packages 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 apt: pkg: ansible state: absent - -- name: install ansible via pip - pip: - name: ansible - state: latest