mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Ansible's recommended indentation/style
This commit is contained in:
parent
f06a1d5231
commit
7cb6120cf3
1 changed files with 43 additions and 37 deletions
|
@ -5,26 +5,31 @@
|
|||
when: ansible_default_ipv4.network is defined
|
||||
|
||||
- name: Enable Nextcloud by copying template to httpd config
|
||||
template: src=nextcloud.conf.j2
|
||||
dest=/etc/{{ apache_config_dir }}/nextcloud.conf
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
template:
|
||||
src: nextcloud.conf.j2
|
||||
dest: "/etc/{{ apache_config_dir }}/nextcloud.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: nextcloud_enabled
|
||||
|
||||
- name: Enable Nextcloud
|
||||
file: path=/etc/apache2/sites-enabled/nextcloud.conf
|
||||
src=/etc/apache2/sites-available/nextcloud.conf
|
||||
state=link
|
||||
- name: Enable Nextcloud (debuntu)
|
||||
file:
|
||||
path: /etc/apache2/sites-enabled/nextcloud.conf
|
||||
src: /etc/apache2/sites-available/nextcloud.conf
|
||||
state: link
|
||||
when: nextcloud_enabled and is_debuntu
|
||||
|
||||
- name: For redhat, remove the config file
|
||||
file: path=/etc/{{ apache_config_dir }}/nextcloud.conf
|
||||
state=absent
|
||||
- name: Remove the config file if not nextcloud_enabled (redhat)
|
||||
file:
|
||||
path: "/etc/{{ apache_config_dir }}/nextcloud.conf"
|
||||
state: absent
|
||||
when: not nextcloud_enabled and is_redhat
|
||||
|
||||
- name: Restart Apache, so it picks up the new aliases
|
||||
service: name={{ apache_service }} state=restarted
|
||||
service:
|
||||
name: "{{ apache_service }}"
|
||||
state: restarted
|
||||
|
||||
# the install wizard does not succeed if already installed
|
||||
- name: Determine if Nextcloud is installed
|
||||
|
@ -70,6 +75,7 @@
|
|||
when: nextcloud_enabled and returned_count == "0"
|
||||
|
||||
- name: Remove Rewrite URL
|
||||
lineinfile: regexp='overwrite.cli.url'
|
||||
state=absent
|
||||
dest="{{ nextcloud_prefix }}/nextcloud/config/config.php"
|
||||
lineinfile:
|
||||
regexp: "overwrite.cli.url"
|
||||
state: absent
|
||||
dest: "{{ nextcloud_prefix }}/nextcloud/config/config.php"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue