add update playbook + folder for apps

This commit is contained in:
Gabriel Augendre 2024-10-10 19:54:13 +02:00
parent 06630d79fd
commit 9b01415013
5 changed files with 16 additions and 7 deletions

View file

@ -1,7 +1,7 @@
.PHONY: dry-run .PHONY: dry-run
dry-run: apps-dry-run:
ansible-playbook playbooks/*.yaml --check --diff ansible-playbook playbooks/apps/*.yaml --check --diff
.PHONY: run .PHONY: run
run: apps:
ansible-playbook playbooks/*.yaml ansible-playbook playbooks/apps/*.yaml

View file

@ -11,5 +11,5 @@ ansible-playbook playbooks/dependencies/*.yaml
## run ## run
```shell ```shell
ansible-playbook playbooks/*.yaml ansible-playbook playbooks/apps/*.yaml
``` ```

View file

@ -30,7 +30,7 @@
- name: write service unit file - name: write service unit file
become: true become: true
template: template:
src: ../templates/goatcounter.service.j2 src: ../../templates/goatcounter.service.j2
dest: /etc/systemd/system/goatcounter.service dest: /etc/systemd/system/goatcounter.service
notify: notify:
- daemon-reload - daemon-reload

View file

@ -4,7 +4,7 @@
- name: write service file - name: write service file
become: true become: true
template: template:
src: ../templates/lyon-transports.service.j2 src: ../../templates/lyon-transports.service.j2
dest: /etc/systemd/system/lyon-transports.service dest: /etc/systemd/system/lyon-transports.service
notify: notify:
- daemon-reload - daemon-reload

View file

@ -0,0 +1,9 @@
- name: system update
hosts: servers
become: true
tasks:
- name: packages update
apt:
upgrade: yes
update_cache: yes
cache_valid_time: 86400