mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use lineinfile
This commit is contained in:
parent
d26d6fa4e0
commit
42e679a0e8
14 changed files with 49 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue