bashrc wird nur noch getouched wenn sie nicht existiert (#79)

This commit is contained in:
Quotengrote 2020-12-02 14:38:06 +01:00 committed by GitHub
parent 1e4a75e935
commit 16d26c6bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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