Olli Graf
8 months ago
12 changed files with 79 additions and 6 deletions
@ -0,0 +1,7 @@ |
|||
--- |
|||
- hosts: "{{ target }}" |
|||
gather_facts: false |
|||
remote_user: pi |
|||
roles: |
|||
- log2ram-st |
|||
|
@ -1,3 +1,10 @@ |
|||
- name: Informationen sammeln |
|||
ansible.builtin.debug: |
|||
var: ansible_facts |
|||
|
|||
- name: leeres File anlegen |
|||
file: |
|||
path: /home/pi/testwhen |
|||
state: touch |
|||
when: (ansible_facts['hostname'] == 'brandine' or ansible_facts['hostname'] == 'kirk') |
|||
|
|||
|
@ -0,0 +1,7 @@ |
|||
--- |
|||
- name: Key |
|||
become: true |
|||
apt_key: |
|||
url: https://azlux.fr/repo.gpg.key |
|||
state: present |
|||
|
@ -0,0 +1,9 @@ |
|||
--- |
|||
- name: Paketquelle |
|||
become: true |
|||
apt_repository: |
|||
repo: 'deb http://packages.azlux.fr/debian/ bookworm main' |
|||
state: present |
|||
filename: log2ram |
|||
update_cache: yes |
|||
|
@ -0,0 +1,8 @@ |
|||
--- |
|||
- name: log2ram installieren |
|||
become: true |
|||
apt: |
|||
update_cache: yes |
|||
name: |
|||
- log2ram |
|||
|
@ -0,0 +1,5 @@ |
|||
- include: ../subtasks/upgrade.yml |
|||
- include: add_repo_key.yml |
|||
- include: add_repo_source.yml |
|||
- include: install_log2ram.yml |
|||
- include: ../subtasks/reboot.yml |
@ -0,0 +1,7 @@ |
|||
|
|||
- name: logram Haupttask |
|||
tasks: |
|||
- include: add_repo_key.yml |
|||
- include: add_repo_source.yml |
|||
- include: install_log2ram.yml |
|||
|
@ -0,0 +1,5 @@ |
|||
--- |
|||
- name: Neustart |
|||
become: true |
|||
reboot: |
|||
|
@ -0,0 +1,7 @@ |
|||
--- |
|||
- name: PI Update |
|||
become: true |
|||
apt: |
|||
update_cache: yes |
|||
upgrade: dist |
|||
|
Loading…
Reference in new issue