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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue