From 17c115b0229ca7cfa41f35df97497cc38fade094 Mon Sep 17 00:00:00 2001 From: Daniel Linder Date: Fri, 16 Nov 2018 01:16:47 -0600 Subject: [PATCH] update to non-loop "apt:" module usage This removes the deprecation warning which suggests removing the loop and use the "name:" with multiple items. --- drupal/provisioning/playbook.yml | 56 +++++++++++++++++--------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/drupal/provisioning/playbook.yml b/drupal/provisioning/playbook.yml index 111a022..29dbf46 100644 --- a/drupal/provisioning/playbook.yml +++ b/drupal/provisioning/playbook.yml @@ -15,38 +15,40 @@ tasks: - name: Get software for apt repository management. - apt: "name={{ item }} state=present" - with_items: - - python-apt - - python-pycurl + apt: + state: present + name: + - python-apt + - python-pycurl - name: Add ondrej repository for later versions of PHP. apt_repository: repo='ppa:ondrej/php' update_cache=yes - name: "Install Apache, MySQL, PHP, and other dependencies." - apt: "name={{ item }} state=present" - with_items: - - git - - curl - - unzip - - sendmail - - apache2 - - php7.1-common - - php7.1-cli - - php7.1-dev - - php7.1-gd - - php7.1-curl - - php7.1-json - - php7.1-opcache - - php7.1-xml - - php7.1-mbstring - - php7.1-pdo - - php7.1-mysql - - php-apcu - - libpcre3-dev - - libapache2-mod-php7.1 - - python-mysqldb - - mysql-server + apt: + state: present + name: + - git + - curl + - unzip + - sendmail + - apache2 + - php7.1-common + - php7.1-cli + - php7.1-dev + - php7.1-gd + - php7.1-curl + - php7.1-json + - php7.1-opcache + - php7.1-xml + - php7.1-mbstring + - php7.1-pdo + - php7.1-mysql + - php-apcu + - libpcre3-dev + - libapache2-mod-php7.1 + - python-mysqldb + - mysql-server - name: Disable the firewall (since this is for local dev only). service: name=ufw state=stopped