Commit 7afd0aef authored by nanahira's avatar nanahira

catchup

parent 3cb61333
---
- hosts: hypervisor
remote_user: root
tasks:
- name: cockpit cert
become: true
copy:
content: |
{{ lookup('file', '../certs/{{cockpit_cert_domain}}/fullchain.pem') }}
{{ lookup('file', '../certs/{{cockpit_cert_domain}}/privkey.pem') }}
dest: /etc/cockpit/ws-certs.d/0-self-signed.cert
owner: root
group: cockpit-ws
mode: 0640
notify: restart_cockpit
- name: start cockpit
become: true
systemd:
name: cockpit
state: started
enabled: yes
handlers:
- name: restart_cockpit
become: true
systemd:
name: cockpit
state: restarted
---
- hosts: services
remote_user: root
tasks:
- name: docker-compose down
docker_compose:
project_src: '{{ ansible_user_dir }}/{{ service_path }}'
state: absent
- name: directory
become: true
file:
path: '{{ ansible_user_dir }}/{{ service_path }}'
state: absent
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
type: docker type: docker
path: '{{ ansible_user_dir }}/{{ service_path }}' path: '{{ ansible_user_dir }}/{{ service_path }}'
services: '{{ handle_services }}' services: '{{ handle_services }}'
when: handle_services when: handle_services | bool
- name: handle_frpc - name: handle_frpc
include_tasks: 'handlers/docker.yaml' include_tasks: 'handlers/docker.yaml'
vars: vars:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment