From d8f0aca278422ed028cf9c44c1fb62394afaa5b4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 27 Oct 2017 09:47:06 -0400 Subject: [PATCH] cleaner Ansible messaging --- roles/nextcloud/tasks/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 6536e7da5..06e8c9bfc 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -1,14 +1,14 @@ # we need to install the rpm in order to get the dependencies # but we only need to do this the first time -- name: See if the nextcloud startup page exists +- name: See if the Nextcloud startup page exists stat: path={{ nextcloud_prefix }}/nextcloud/index.php register: nextcloud_page # but we use the tar file to get the latest version -- name: Get the nextcloud software +- name: Get the Nextcloud software get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }} when: internet_available async: 900 @@ -16,7 +16,7 @@ tags: - download -- name: ubuntu and debian treat names differently +- name: Ubuntu and Debian treat names differently package: name={{ item }} state=present with_items: - libapache2-mod-php{{ php_version }} @@ -24,7 +24,7 @@ - php{{ php_version }}-zip when: is_debian -- name: ubuntu and debian treat names differently +- name: Ubuntu and Debian treat names differently package: name={{ item }} state=present with_items: - libapache2-mod-php @@ -70,7 +70,7 @@ dest={{ nextcloud_prefix }} when: is_F18 -- name: in Centos, the following config dir is symlink to /etc/nextcloud +- name: In CentOS, the following config dir is symlink to /etc/nextcloud file: path=/etc/nextcloud state=directory when: is_centos @@ -83,7 +83,7 @@ mode=0640 when: is_centos -- name: Make apache owner +- name: Make Apache owner file: path={{ nextcloud_prefix }}/nextcloud owner={{ apache_user }} group={{ apache_user }} @@ -99,11 +99,11 @@ with_items: - "{{ nextcloud_data_dir }}" -- name: Create a mysql database for nextcloud +- name: Create a MySQL database for Nextcloud mysql_db: name={{ nextcloud_dbname }} when: mysql_enabled and nextcloud_enabled -- name: Create a user to access the nextcloud database +- name: Create a user to access the Nextcloud database mysql_user: name={{ nextcloud_dbuser }} host={{ item }} password={{ nextcloud_dbpassword }} priv={{ nextcloud_dbname }}.*:ALL,GRANT with_items: - "{{ nextcloud_dbhost }}" @@ -113,7 +113,7 @@ when: mysql_enabled and nextcloud_enabled -- name: Restart apache, so it picks up the new aliases +- name: Restart Apache, so it picks up the new aliases service: name={{ apache_service }} state=restarted when: not nextcloud_enabled @@ -122,7 +122,7 @@ # following enables and disables - include: nextcloud_enabled.yml -- name: Add nextcloud to service list +- name: Add Nextcloud to service list ini_file: dest='{{ service_filelist }}' section=nextcloud option='{{ item.option }}'