mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
use lineinfile
This commit is contained in:
parent
d26d6fa4e0
commit
42e679a0e8
14 changed files with 49 additions and 36 deletions
|
@ -10,7 +10,7 @@
|
|||
path: /etc/apache2/sites-enabled/awstats.conf
|
||||
state: absent
|
||||
when: not awstats_enabled and is_debuntu
|
||||
|
||||
|
||||
- name: Restart Apache service ({{ apache_service }})
|
||||
systemd:
|
||||
name: "{{ apache_service }}"
|
||||
|
|
|
@ -95,6 +95,8 @@
|
|||
when: awstats_enabled and is_debuntu
|
||||
|
||||
- name: Add 'awstats_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: awstats_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^awstats_installed'
|
||||
line: 'awstats_installed'
|
||||
state: present
|
||||
|
|
|
@ -88,7 +88,9 @@
|
|||
dest: "/etc/{{ apache_config_dir }}/elgg.conf"
|
||||
|
||||
- name: Add 'elgg_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: elgg_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^elgg_installed'
|
||||
line: 'elgg_installed'
|
||||
state: present
|
||||
|
||||
|
|
|
@ -38,11 +38,6 @@
|
|||
state: stopped
|
||||
when: not kalite_cron_enabled and is_F18
|
||||
|
||||
- name: Add 'kalite_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: kalite_installed
|
||||
|
||||
- name: Add 'kalite' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
path: "{{ iiab_ini_file }}"
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
poll: 10
|
||||
|
||||
- name: Add 'kalite_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: kalite_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^kalite_installed'
|
||||
line: 'kalite_installed'
|
||||
state: present
|
||||
|
|
|
@ -90,6 +90,8 @@
|
|||
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
|
||||
|
||||
- name: Add 'kiwix_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: kiwix_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^kiwix_installed'
|
||||
line: 'kiwix_installed'
|
||||
state: present
|
||||
|
|
|
@ -113,6 +113,8 @@
|
|||
# name: proxy_http
|
||||
|
||||
- name: Add 'kolibri_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: kolibri_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^kolibri_installed'
|
||||
line: 'kolibri_installed'
|
||||
state: present
|
||||
|
|
|
@ -139,6 +139,8 @@
|
|||
mode: 0644
|
||||
|
||||
- name: Add 'moodle_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: moodle_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^moodle_installed'
|
||||
line: 'moodle_installed'
|
||||
state: present
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
include_tasks: install.yml
|
||||
when: moodle_install | bool and not moodle_installed is defined
|
||||
|
||||
- name: Enable Moodle
|
||||
- name: Enable Moodle
|
||||
include_tasks: enable.yml
|
||||
when: moodle_install | bool or moodle_installed is defined
|
||||
|
|
|
@ -183,6 +183,8 @@
|
|||
mode: 0644
|
||||
|
||||
- name: Add 'nextcloud_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: nextcloud_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^nextcloud_installed'
|
||||
line: 'nextcloud_installed'
|
||||
state: present
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
# nextcloud_user/nextcloud_user_password) is just not needed in the end...
|
||||
#
|
||||
# NOTE: COMMENTS (FOLLOWING '#' SIGN) WITHIN A SHELL COMMAND CAUSE IT TO *FAIL*
|
||||
#
|
||||
#
|
||||
#- name: Determine if Nextcloud user exists already
|
||||
# shell: >
|
||||
# php {{ nextcloud_prefix }}/nextcloud/occ user:list |
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
enabled: yes
|
||||
state: restarted
|
||||
when: sugarizer_enabled | bool
|
||||
|
||||
|
||||
- name: Disable & Stop 'sugarizer' systemd service (if not sugarizer_enabled)
|
||||
systemd:
|
||||
name: sugarizer
|
||||
|
|
|
@ -222,6 +222,8 @@
|
|||
# # block: "\tvar pathPrefix = '/sugarizer';\n\tapp.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));"
|
||||
|
||||
- name: Add 'sugarizer_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: sugarizer_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^sugarizer_installed'
|
||||
line: 'sugarizer_installed'
|
||||
state: present
|
||||
|
|
|
@ -102,6 +102,8 @@
|
|||
when: apache_enabled
|
||||
|
||||
- name: Add 'wordpress_installed' variable values to {{ iiab_installed }}
|
||||
ini_file:
|
||||
path: "{{ iiab_installed }}"
|
||||
value: wordpress_installed
|
||||
lineinfile:
|
||||
dest: "{{ iiab_installed }}"
|
||||
regexp: '^wordpress_installed'
|
||||
line: 'wordpress_installed'
|
||||
state: present
|
||||
|
|
Loading…
Reference in a new issue