Compare commits

..

3 Commits

4 changed files with 41 additions and 2 deletions

View File

@ -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'] }

View 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

View 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 }}

View 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