Compare commits
3 Commits
16c70dc614
...
02d4d676ec
Author | SHA1 | Date | |
---|---|---|---|
02d4d676ec | |||
b6f3344689 | |||
77948e867b |
@ -1,12 +1,12 @@
|
||||
---
|
||||
|
||||
- name: Bedrock Linux Desktop Setup
|
||||
description: Installs my bedrock linux desktop setup (designed to setup EVERYTHING other than the minimal desktop base)
|
||||
- name: Bedrock Linux Desktop Setup - designed to setup EVERYTHING other than the minimal desktop base
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: True
|
||||
|
||||
roles:
|
||||
- { role: fetch-stratum}
|
||||
# - { role: network, tags: ['network'] }
|
||||
# - { role: kernel, tags: ['kernel'] }
|
||||
# - { role: base, tags: ['base'] }
|
||||
|
19
roles/backup-remove-strata/tasks/main.yaml
Normal file
19
roles/backup-remove-strata/tasks/main.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Find if backup {{strata}} strata exists
|
||||
stat:
|
||||
path: /bedrock/strata/{{ strata }}.backup
|
||||
register: strata_backup
|
||||
|
||||
|
||||
- name: Delete previous backup {{ strata }} strata
|
||||
ansible.builtin.shell:
|
||||
cmd: brl remove {{ strata }}.backup
|
||||
when: strata_backup.stat.exists
|
||||
|
||||
|
||||
- name: Backup old {{ strata }} strata
|
||||
ansible.builtin.shell: |
|
||||
brl disable {{ strata }}
|
||||
brl rename {{ strata }} {{ strata }}.backup
|
||||
brl hide {{ strata }}.backup
|
9
roles/fetch-strata/tasks/main.yaml
Normal file
9
roles/fetch-strata/tasks/main.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
- name: Backup and remove old {{ strata }} strata
|
||||
include_role:
|
||||
name: backup-remove-strata
|
||||
|
||||
- name: Fetch {{ strata }} strata
|
||||
ansible.builtin.shell:
|
||||
cmd: brl fetch {{ strata }}
|
||||
|
11
roles/fetch-stratum/tasks/main.yaml
Normal file
11
roles/fetch-stratum/tasks/main.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
- name: Fetch new alpine strata
|
||||
include_role:
|
||||
name: fetch-strata
|
||||
vars:
|
||||
strata: alpine
|
||||
|
||||
- name: Fetch new arch linux
|
||||
include_role:
|
||||
name: fetch-strata
|
||||
vars:
|
||||
strata: arch
|
Loading…
x
Reference in New Issue
Block a user