You've already forked ansible-role-directadmin
Initial commit
This commit is contained in:
42
tasks/config/directadmin.yml
Normal file
42
tasks/config/directadmin.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
- name: Setup One-Click logon
|
||||
ini_file:
|
||||
path: /usr/local/directadmin/conf/directadmin.conf
|
||||
section: null
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: false
|
||||
state: present
|
||||
no_extra_spaces: true
|
||||
create: true
|
||||
loop:
|
||||
- name: Allow one-click logon Roundcube
|
||||
option: one_click_webmail_login
|
||||
value: 1
|
||||
- name: Allow on-click logon phpMyAdmin
|
||||
option: one_click_pma_login
|
||||
value: 1
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify:
|
||||
- "directadmin : Restart DirectAdmin"
|
||||
- "directadmin : Build phpMyAdmin"
|
||||
- "directadmin : Build Roundcube"
|
||||
- "directadmin : Rewrite confs"
|
||||
|
||||
- name: Ensure custom configs are present
|
||||
ini_file:
|
||||
path: /usr/local/directadmin/conf/directadmin.conf
|
||||
section: null
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: false
|
||||
state: present
|
||||
no_extra_spaces: true
|
||||
create: true
|
||||
loop: "{{ directadmin_custom_conf }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify:
|
||||
- "directadmin : Restart DirectAdmin"
|
||||
- "directadmin : Rewrite confs"
|
||||
Reference in New Issue
Block a user