1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

use lineinfile

This commit is contained in:
Jerry Vonau 2019-09-09 12:14:13 -05:00
parent d26d6fa4e0
commit 42e679a0e8
14 changed files with 49 additions and 36 deletions

View file

@ -95,6 +95,8 @@
when: awstats_enabled and is_debuntu when: awstats_enabled and is_debuntu
- name: Add 'awstats_installed' variable values to {{ iiab_installed }} - name: Add 'awstats_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: awstats_installed regexp: '^awstats_installed'
line: 'awstats_installed'
state: present

View file

@ -88,7 +88,9 @@
dest: "/etc/{{ apache_config_dir }}/elgg.conf" dest: "/etc/{{ apache_config_dir }}/elgg.conf"
- name: Add 'elgg_installed' variable values to {{ iiab_installed }} - name: Add 'elgg_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: elgg_installed regexp: '^elgg_installed'
line: 'elgg_installed'
state: present

View file

@ -38,11 +38,6 @@
state: stopped state: stopped
when: not kalite_cron_enabled and is_F18 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 }} - name: Add 'kalite' variable values to {{ iiab_ini_file }}
ini_file: ini_file:
path: "{{ iiab_ini_file }}" path: "{{ iiab_ini_file }}"

View file

@ -16,6 +16,8 @@
poll: 10 poll: 10
- name: Add 'kalite_installed' variable values to {{ iiab_installed }} - name: Add 'kalite_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: kalite_installed regexp: '^kalite_installed'
line: 'kalite_installed'
state: present

View file

@ -90,6 +90,8 @@
- { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'} - { src: 'kiwix.conf.j2', dest: '/etc/{{ apache_config_dir }}/kiwix.conf', mode: '0644'}
- name: Add 'kiwix_installed' variable values to {{ iiab_installed }} - name: Add 'kiwix_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: kiwix_installed regexp: '^kiwix_installed'
line: 'kiwix_installed'
state: present

View file

@ -113,6 +113,8 @@
# name: proxy_http # name: proxy_http
- name: Add 'kolibri_installed' variable values to {{ iiab_installed }} - name: Add 'kolibri_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: kolibri_installed regexp: '^kolibri_installed'
line: 'kolibri_installed'
state: present

View file

@ -139,6 +139,8 @@
mode: 0644 mode: 0644
- name: Add 'moodle_installed' variable values to {{ iiab_installed }} - name: Add 'moodle_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: moodle_installed regexp: '^moodle_installed'
line: 'moodle_installed'
state: present

View file

@ -183,6 +183,8 @@
mode: 0644 mode: 0644
- name: Add 'nextcloud_installed' variable values to {{ iiab_installed }} - name: Add 'nextcloud_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: nextcloud_installed regexp: '^nextcloud_installed'
line: 'nextcloud_installed'
state: present

View file

@ -222,6 +222,8 @@
# # block: "\tvar pathPrefix = '/sugarizer';\n\tapp.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));" # # block: "\tvar pathPrefix = '/sugarizer';\n\tapp.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));"
- name: Add 'sugarizer_installed' variable values to {{ iiab_installed }} - name: Add 'sugarizer_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: sugarizer_installed regexp: '^sugarizer_installed'
line: 'sugarizer_installed'
state: present

View file

@ -102,6 +102,8 @@
when: apache_enabled when: apache_enabled
- name: Add 'wordpress_installed' variable values to {{ iiab_installed }} - name: Add 'wordpress_installed' variable values to {{ iiab_installed }}
ini_file: lineinfile:
path: "{{ iiab_installed }}" dest: "{{ iiab_installed }}"
value: wordpress_installed regexp: '^wordpress_installed'
line: 'wordpress_installed'
state: present