From 65cfd7ec12ceb06dedcd5c2f9ab5af000481f8a1 Mon Sep 17 00:00:00 2001 From: Maxim Kravets Date: Fri, 20 May 2016 17:09:02 +0200 Subject: [PATCH] Ansible 2.x stuff --- meta/main.yml | 5 +++-- tasks/apt.yml | 4 ++-- test.yml | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index b57d2e2..7e0c34d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,10 +1,11 @@ galaxy_info: - description: "apt for Ubuntu 12.04" - min_ansible_version: 1.4 + description: "apt for Ubuntu 12.04/14.04" + min_ansible_version: 1.9 platforms: - name: Ubuntu versions: - precise + - trusty categories: - system dependencies: [] diff --git a/tasks/apt.yml b/tasks/apt.yml index b2ff2f3..579c9e9 100644 --- a/tasks/apt.yml +++ b/tasks/apt.yml @@ -2,8 +2,8 @@ - name: APT | Configure cloud init to preserve source list copy: - 'content="apt_preserve_sources_list: true" - dest="/etc/cloud/cloud.cfg.d/91_apt_preserve"' + content="apt_preserve_sources_list: true" + dest="/etc/cloud/cloud.cfg.d/91_apt_preserve" when: apt_cloud_init_preserve_apt_list - name: APT | Ensure the "standard" sources list /etc/apt/sources.list is updated diff --git a/test.yml b/test.yml index d462043..be0a9ab 100644 --- a/test.yml +++ b/test.yml @@ -1,6 +1,5 @@ --- - hosts: all - sudo: True + become: True roles: - ansible-apt - \ No newline at end of file