Make stuff run on Mint VM at work
This commit is contained in:
26
dot_bootstrap/setup_small.yml
Normal file
26
dot_bootstrap/setup_small.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: Role out main Configuration to {{ ansible_hostname }}
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Get my user
|
||||
ansible.builtin.set_fact:
|
||||
regular_user: "{{ ansible_env.SUDO_USER or ansible_user_id }}"
|
||||
|
||||
- name: Git checkout Tmux Plugin Manager
|
||||
ansible.builtin.git:
|
||||
repo: 'https://github.com/tmux-plugins/tpm'
|
||||
dest: "~{{ regular_user }}/.config/tmux/plugins/tpm"
|
||||
clone: yes
|
||||
update: yes
|
||||
force: yes
|
||||
|
||||
- name: TPM folder mode
|
||||
ansible.builtin.file:
|
||||
path: "~{{ regular_user }}/.config/tmux/plugins/"
|
||||
mode: "0755"
|
||||
owner: "{{ regular_user }}"
|
||||
recurse: yes
|
||||
become: yes
|
||||
Reference in New Issue
Block a user