bashrc wird nur noch getouched wenn sie nicht existiert (#79)
This commit is contained in:
parent
1e4a75e935
commit
16d26c6bf0
1 changed files with 7 additions and 14 deletions
|
@ -6,24 +6,17 @@
|
||||||
state: present
|
state: present
|
||||||
cache_valid_time: 360
|
cache_valid_time: 360
|
||||||
|
|
||||||
- name: touch "{{ tmux_bashrc_destination }}"
|
- name: Check if "{{ tmux_bashrc_destination }}" exists
|
||||||
|
stat:
|
||||||
|
path: "{{ tmux_bashrc_destination }}"
|
||||||
|
register: stat_result
|
||||||
|
|
||||||
|
- name: touch "{{ tmux_bashrc_destination }}" , if it doesnt exist already
|
||||||
become: yes
|
become: yes
|
||||||
file:
|
file:
|
||||||
path: "{{ tmux_bashrc_destination }}"
|
path: "{{ tmux_bashrc_destination }}"
|
||||||
state: touch
|
state: touch
|
||||||
|
when: not stat_result.stat.exists
|
||||||
# - name: ensure homedir exists
|
|
||||||
# become: yes
|
|
||||||
# ansible.builtin.file:
|
|
||||||
# path: " {{ tmux_conf_destination }}"
|
|
||||||
# state: directory
|
|
||||||
|
|
||||||
# - name: copy .tmux.conf
|
|
||||||
# become: yes
|
|
||||||
# ansible.builtin.template:
|
|
||||||
# src: ".tmux.conf"
|
|
||||||
# dest: "{{ tmux_conf_destination }}"
|
|
||||||
# backup: true
|
|
||||||
|
|
||||||
- name: add tmux-session config to .bashrc
|
- name: add tmux-session config to .bashrc
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in a new issue