📂 FileMgr
📍
/
opt
/
Autom8Redis
/
redissetup
/
roles
/
redis_init
/
tasks
✏️ /opt/Autom8Redis/redissetup/roles/redis_init/tasks/main.yml
✕ Tutup
--- - name: Gather facts from new server setup: - name: Ensure redis config directory is present ansible.builtin.file: path: /etc/Autom8Redis state: directory mode: '0755' - name: Ensure redis user config directory is present ansible.builtin.file: path: /etc/Autom8Redis/{{ CPANELUSER }} state: directory mode: '0755' - name: check if custom redis config template is active stat: path: /opt/Autom8Redis/redissetup/roles/redis_init/templates/custom_redis.conf.j2 register: redis_customconf - name: Setup Redis Config template: src: redis.conf.j2 dest: /etc/Autom8Redis/{{ CPANELUSER }}/{{ CPANELUSER }}.conf when: - redis_customconf.stat.exists == false - name: Setup Redis custom Config template: src: custom_redis.conf.j2 dest: /etc/Autom8Redis/{{ CPANELUSER }}/{{ CPANELUSER }}.conf when: - redis_customconf.stat.exists == true - name: Make sure autom8redis service unit is running ansible.builtin.systemd: daemon_reload: true enabled: true state: restarted name: autom8redis@{{ CPANELUSER }}.service
💾 Simpan
Batal
⬅ redis_init
1 item
Nama
Tipe
Ukuran
Diubah
Perm
Aksi
📄
main.yml
yml
1.1 KB
14/03/25 09:41
0644
✏️
⬇
🔤
🔑
🗑
✏️ Rename
Nama Baru
Simpan
Batal
🔑 Ubah Permission
Octal (mis: 0755)
Terapkan
Batal