From 509c5697b71e2f8c0541402187a53f6f5169c188 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 30 Jun 2020 17:44:48 +0200 Subject: [PATCH] spit i3 config --- tasks/clean.yaml | 1 + tasks/eralitex.yaml | 18 ------------------ tasks/i3.yaml | 18 ++++++++++++++++++ tasks/main.yaml | 4 ++++ 4 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 tasks/clean.yaml create mode 100644 tasks/i3.yaml diff --git a/tasks/clean.yaml b/tasks/clean.yaml new file mode 100644 index 0000000..ed97d53 --- /dev/null +++ b/tasks/clean.yaml @@ -0,0 +1 @@ +--- diff --git a/tasks/eralitex.yaml b/tasks/eralitex.yaml index 8ac92cb..cbc3eb9 100644 --- a/tasks/eralitex.yaml +++ b/tasks/eralitex.yaml @@ -11,23 +11,6 @@ state: directory with_items: "{{ eralitex_profiles }}" -- name: i3 config - template: - src: i3.config.j2 - dest: "{{eralitex_directory}}/{{item}}/i3.config" - with_items: "{{ eralitex_profiles }}" - -- name: check i3 config - command: i3 -c {{eralitex_directory}}/{{item}}/i3.config -C - with_items: "{{ eralitex_profiles }}" - changed_when: false - -- name: i3blocks config - template: - src: i3blocks.config.j2 - dest: "{{eralitex_directory}}/{{item}}/i3blocks.config" - with_items: "{{ eralitex_profiles }}" - - name: xsession scripts template: src: xsession.sh.j2 @@ -84,7 +67,6 @@ src: "{{eralitex_profile}}" state: link - - name: background image directory file: path: "{{eralitex_directory}}/backgrounds" diff --git a/tasks/i3.yaml b/tasks/i3.yaml new file mode 100644 index 0000000..076ed4a --- /dev/null +++ b/tasks/i3.yaml @@ -0,0 +1,18 @@ +--- + +- name: i3 config + template: + src: i3.config.j2 + dest: "{{eralitex_directory}}/{{item}}/i3.config" + with_items: "{{ eralitex_profiles }}" + +- name: check i3 config + command: i3 -c {{eralitex_directory}}/{{item}}/i3.config -C + with_items: "{{ eralitex_profiles }}" + changed_when: false + +- name: i3blocks config + template: + src: i3blocks.config.j2 + dest: "{{eralitex_directory}}/{{item}}/i3blocks.config" + with_items: "{{ eralitex_profiles }}" diff --git a/tasks/main.yaml b/tasks/main.yaml index 916835c..c91e126 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -1,5 +1,7 @@ --- +- import_tasks: clean.yaml + - import_tasks: structure.yaml - import_tasks: ssh.yaml - import_tasks: vnc.yaml @@ -9,6 +11,8 @@ - import_tasks: points.yaml +- import_tasks: i3.yaml + when: home_desktop - import_tasks: eralitex.yaml when: home_desktop - import_tasks: x11.yaml