mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
50ced1eec8
commit
d8f0aca278
1 changed files with 10 additions and 10 deletions
|
@ -1,14 +1,14 @@
|
||||||
# we need to install the rpm in order to get the dependencies
|
# we need to install the rpm in order to get the dependencies
|
||||||
# but we only need to do this the first time
|
# 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
|
stat: path={{ nextcloud_prefix }}/nextcloud/index.php
|
||||||
register: nextcloud_page
|
register: nextcloud_page
|
||||||
|
|
||||||
|
|
||||||
# but we use the tar file to get the latest version
|
# 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 }}
|
get_url: url={{ nextcloud_dl_url }}/{{ nextcloud_src_file }} dest={{ downloads_dir }}/{{ nextcloud_src_file }}
|
||||||
when: internet_available
|
when: internet_available
|
||||||
async: 900
|
async: 900
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: ubuntu and debian treat names differently
|
- name: Ubuntu and Debian treat names differently
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libapache2-mod-php{{ php_version }}
|
- libapache2-mod-php{{ php_version }}
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
- php{{ php_version }}-zip
|
- php{{ php_version }}-zip
|
||||||
when: is_debian
|
when: is_debian
|
||||||
|
|
||||||
- name: ubuntu and debian treat names differently
|
- name: Ubuntu and Debian treat names differently
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libapache2-mod-php
|
- libapache2-mod-php
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
dest={{ nextcloud_prefix }}
|
dest={{ nextcloud_prefix }}
|
||||||
when: is_F18
|
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
|
file: path=/etc/nextcloud
|
||||||
state=directory
|
state=directory
|
||||||
when: is_centos
|
when: is_centos
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
mode=0640
|
mode=0640
|
||||||
when: is_centos
|
when: is_centos
|
||||||
|
|
||||||
- name: Make apache owner
|
- name: Make Apache owner
|
||||||
file: path={{ nextcloud_prefix }}/nextcloud
|
file: path={{ nextcloud_prefix }}/nextcloud
|
||||||
owner={{ apache_user }}
|
owner={{ apache_user }}
|
||||||
group={{ apache_user }}
|
group={{ apache_user }}
|
||||||
|
@ -99,11 +99,11 @@
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ nextcloud_data_dir }}"
|
- "{{ nextcloud_data_dir }}"
|
||||||
|
|
||||||
- name: Create a mysql database for nextcloud
|
- name: Create a MySQL database for Nextcloud
|
||||||
mysql_db: name={{ nextcloud_dbname }}
|
mysql_db: name={{ nextcloud_dbname }}
|
||||||
when: mysql_enabled and nextcloud_enabled
|
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
|
mysql_user: name={{ nextcloud_dbuser }} host={{ item }} password={{ nextcloud_dbpassword }} priv={{ nextcloud_dbname }}.*:ALL,GRANT
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ nextcloud_dbhost }}"
|
- "{{ nextcloud_dbhost }}"
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
when: mysql_enabled and nextcloud_enabled
|
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
|
service: name={{ apache_service }} state=restarted
|
||||||
when: not nextcloud_enabled
|
when: not nextcloud_enabled
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
# following enables and disables
|
# following enables and disables
|
||||||
- include: nextcloud_enabled.yml
|
- include: nextcloud_enabled.yml
|
||||||
|
|
||||||
- name: Add nextcloud to service list
|
- name: Add Nextcloud to service list
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file: dest='{{ service_filelist }}'
|
||||||
section=nextcloud
|
section=nextcloud
|
||||||
option='{{ item.option }}'
|
option='{{ item.option }}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue