diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-11 21:35:01 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-11 21:35:01 +0100 |
commit | 587b6dd6d2d3a63ad28455003c0c2c5f58afdecb (patch) | |
tree | c2342ed5766c09e98c1948c4fbaa6667a53b4538 /roles | |
parent | 379fbe46b77c84a419a0b438b088e65b76406c73 (diff) | |
download | Ansible-587b6dd6d2d3a63ad28455003c0c2c5f58afdecb.tar.gz Ansible-587b6dd6d2d3a63ad28455003c0c2c5f58afdecb.tar.zst Ansible-587b6dd6d2d3a63ad28455003c0c2c5f58afdecb.zip |
Add dir creation
Diffstat (limited to 'roles')
-rw-r--r-- | roles/contexts/fretlink/tasks/main.yml | 18 | ||||
-rw-r--r-- | roles/git/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/gnupg/tasks/main.yml | 14 | ||||
-rw-r--r-- | roles/graphical/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/lxde/tasks/main.yml | 13 | ||||
-rw-r--r-- | roles/programming/haskell/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/programming/nodejs/tasks/main.yml | 6 | ||||
-rw-r--r-- | roles/programming/python/tasks/main.yml | 6 | ||||
-rw-r--r-- | roles/tools/tasks/main.yml | 17 |
9 files changed, 85 insertions, 10 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml index 78f733a..085da83 100644 --- a/roles/contexts/fretlink/tasks/main.yml +++ b/roles/contexts/fretlink/tasks/main.yml | |||
@@ -6,12 +6,20 @@ | |||
6 | - programming/python | 6 | - programming/python |
7 | - programming/haskell | 7 | - programming/haskell |
8 | - programming/nodejs | 8 | - programming/nodejs |
9 | - name: Config dirs | ||
10 | file: | ||
11 | state: directory | ||
12 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
13 | loop: | ||
14 | - autostart | ||
15 | - Zeal | ||
16 | - pm2 | ||
9 | - name: Config files | 17 | - name: Config files |
10 | copy: | 18 | copy: |
11 | src: "config_files/{{ item }}" | 19 | src: "config_files/{{ item }}" |
12 | dest: "$XDG_CONFIG_HOME/{{ item }}" | 20 | dest: "$XDG_CONFIG_HOME/{{ item }}" |
13 | loop: | 21 | loop: |
14 | - "autostart/zeal.desktop" | 22 | - autostart/zeal.desktop |
15 | - name: zeal configuration | 23 | - name: zeal configuration |
16 | ini_file: | 24 | ini_file: |
17 | path: "$XDG_CONFIG_HOME/Zeal/Zeal.conf" | 25 | path: "$XDG_CONFIG_HOME/Zeal/Zeal.conf" |
@@ -47,12 +55,12 @@ | |||
47 | args: | 55 | args: |
48 | creates: "$XDG_DATA_HOME/Zeal/Zeal/docsets/{{ item }}.docset" | 56 | creates: "$XDG_DATA_HOME/Zeal/Zeal/docsets/{{ item }}.docset" |
49 | loop: "{{ zeal_missing_docsets.stdout.split('\n') }}" | 57 | loop: "{{ zeal_missing_docsets.stdout.split('\n') }}" |
50 | - name: Create pm2 config dir | ||
51 | file: | ||
52 | path: $XDG_CONFIG_HOME/pm2 | ||
53 | state: directory | ||
54 | - name: workdir | 58 | - name: workdir |
55 | block: | 59 | block: |
60 | - name: Workdir | ||
61 | file: | ||
62 | state: directory | ||
63 | path: $HOME/workdir | ||
56 | - name: workdir scripts | 64 | - name: workdir scripts |
57 | copy: | 65 | copy: |
58 | mode: 0755 | 66 | mode: 0755 |
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index e2a5bbf..853ecb2 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml | |||
@@ -1,4 +1,11 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
6 | loop: | ||
7 | - tig | ||
8 | - git/templates_fretlink/hooks | ||
2 | - name: Config files | 9 | - name: Config files |
3 | copy: | 10 | copy: |
4 | mode: preserve | 11 | mode: preserve |
diff --git a/roles/gnupg/tasks/main.yml b/roles/gnupg/tasks/main.yml index 183dd7d..117ebf2 100644 --- a/roles/gnupg/tasks/main.yml +++ b/roles/gnupg/tasks/main.yml | |||
@@ -1,4 +1,13 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "$XDG_CONFIG_HOME/{{ gnupg_config_item }}" | ||
6 | mode: 0700 | ||
7 | loop: | ||
8 | - gnupg | ||
9 | loop_control: | ||
10 | loop_var: gnupg_config_item | ||
2 | - name: Config files | 11 | - name: Config files |
3 | copy: | 12 | copy: |
4 | src: "gnupg/{{ gnupg_config_item }}" | 13 | src: "gnupg/{{ gnupg_config_item }}" |
@@ -8,11 +17,6 @@ | |||
8 | - gpg.conf | 17 | - gpg.conf |
9 | loop_control: | 18 | loop_control: |
10 | loop_var: gnupg_config_item | 19 | loop_var: gnupg_config_item |
11 | - name: Protect directory | ||
12 | file: | ||
13 | path: $XDG_CONFIG_HOME/gnupg | ||
14 | state: directory | ||
15 | mode: 0700 | ||
16 | - name: Get gnupg runtime folder name | 20 | - name: Get gnupg runtime folder name |
17 | shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' | 21 | shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' |
18 | register: gnupg_runtime_dir_cmd | 22 | register: gnupg_runtime_dir_cmd |
diff --git a/roles/graphical/tasks/main.yml b/roles/graphical/tasks/main.yml index ad45024..f73623e 100644 --- a/roles/graphical/tasks/main.yml +++ b/roles/graphical/tasks/main.yml | |||
@@ -1,4 +1,11 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
6 | loop: | ||
7 | - autostart | ||
8 | - dunst | ||
2 | - name: Config files | 9 | - name: Config files |
3 | copy: | 10 | copy: |
4 | src: "config_files/{{ item }}" | 11 | src: "config_files/{{ item }}" |
diff --git a/roles/lxde/tasks/main.yml b/roles/lxde/tasks/main.yml index 8bf27af..e7de759 100644 --- a/roles/lxde/tasks/main.yml +++ b/roles/lxde/tasks/main.yml | |||
@@ -2,6 +2,19 @@ | |||
2 | - name: Import graphical | 2 | - name: Import graphical |
3 | include_role: | 3 | include_role: |
4 | name: graphical | 4 | name: graphical |
5 | - name: Config dirs | ||
6 | file: | ||
7 | state: directory | ||
8 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
9 | loop: | ||
10 | - libfm | ||
11 | - pcmanfm/LXDE | ||
12 | - lxterminal | ||
13 | - openbox | ||
14 | - lxpanel/LXDE/panels | ||
15 | - lxsession-default-apps | ||
16 | - lxsession/LXDE | ||
17 | - gpicview | ||
5 | - name: Config files | 18 | - name: Config files |
6 | copy: | 19 | copy: |
7 | mode: preserve | 20 | mode: preserve |
diff --git a/roles/programming/haskell/tasks/main.yml b/roles/programming/haskell/tasks/main.yml index fe37787..a3ed2a0 100644 --- a/roles/programming/haskell/tasks/main.yml +++ b/roles/programming/haskell/tasks/main.yml | |||
@@ -1,4 +1,11 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "{{ item }}" | ||
6 | loop: | ||
7 | - "$HOME/.ghc" | ||
8 | - "$XDG_DATA_HOME/stack/global-project" | ||
2 | - name: GHC config file | 9 | - name: GHC config file |
3 | copy: | 10 | copy: |
4 | src: ghci.conf | 11 | src: ghci.conf |
diff --git a/roles/programming/nodejs/tasks/main.yml b/roles/programming/nodejs/tasks/main.yml index fcf7421..eef4d2f 100644 --- a/roles/programming/nodejs/tasks/main.yml +++ b/roles/programming/nodejs/tasks/main.yml | |||
@@ -1,4 +1,10 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
6 | loop: | ||
7 | - npm | ||
2 | - name: config file | 8 | - name: config file |
3 | copy: | 9 | copy: |
4 | src: npmrc | 10 | src: npmrc |
diff --git a/roles/programming/python/tasks/main.yml b/roles/programming/python/tasks/main.yml index db67584..e3a840b 100644 --- a/roles/programming/python/tasks/main.yml +++ b/roles/programming/python/tasks/main.yml | |||
@@ -1,4 +1,10 @@ | |||
1 | --- | 1 | --- |
2 | - name: Config dirs | ||
3 | file: | ||
4 | state: directory | ||
5 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
6 | loop: | ||
7 | - python | ||
2 | - name: Config file | 8 | - name: Config file |
3 | copy: | 9 | copy: |
4 | src: startup_script.py | 10 | src: startup_script.py |
diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 9c540d5..94324fc 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml | |||
@@ -5,6 +5,19 @@ | |||
5 | loop: | 5 | loop: |
6 | - git | 6 | - git |
7 | - gnupg | 7 | - gnupg |
8 | - name: Config dirs | ||
9 | file: | ||
10 | state: directory | ||
11 | path: "$XDG_CONFIG_HOME/{{ item }}" | ||
12 | loop: | ||
13 | - htop | ||
14 | - mplayer | ||
15 | - psql | ||
16 | - vim | ||
17 | - tmux | ||
18 | - youtube-viewer | ||
19 | - remind | ||
20 | - systemd/user | ||
8 | - name: config files | 21 | - name: config files |
9 | copy: | 22 | copy: |
10 | src: "{{ item }}" | 23 | src: "{{ item }}" |
@@ -102,6 +115,10 @@ | |||
102 | - [ "sinkType", "0" ] | 115 | - [ "sinkType", "0" ] |
103 | - [ "sourceType", "0" ] | 116 | - [ "sourceType", "0" ] |
104 | - [ "showVolumeMeters", "1" ] | 117 | - [ "showVolumeMeters", "1" ] |
118 | - name: ssh config dirs | ||
119 | file: | ||
120 | state: directory | ||
121 | path: "$HOME/.ssh" | ||
105 | - name: ssh files | 122 | - name: ssh files |
106 | copy: | 123 | copy: |
107 | src: "ssh/{{ item }}" | 124 | src: "ssh/{{ item }}" |