added tasks for allusers

This commit is contained in:
2022-02-20 17:55:16 +01:00
parent 1972e75382
commit 1bbc5f778e
4 changed files with 150 additions and 84 deletions

View File

@@ -34,39 +34,39 @@
loop:
- "private_keys/gitlab_read_ed25519"
- name: users | root | install known_hosts
copy:
dest: "/root/.ssh/known_hosts"
src: "users/known_hosts"
backup: True
mode: '0600'
owner: 'root'
group: 'root'
# - name: users | root | install known_hosts
# copy:
# dest: "/root/.ssh/known_hosts"
# src: "users/known_hosts"
# backup: True
# mode: '0600'
# owner: 'root'
# group: 'root'
- name: users | root | create script directories
file:
path: "{{ root_home }}/scripts"
state: directory
mode: '0755'
# - name: users | root | create script directories
# file:
# path: "{{ root_home }}/scripts"
# state: directory
# mode: '0755'
- name: users | root | clone root_bins
git:
repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/root-bin.git'
dest: "{{ root_home }}/bin"
key_file: '/root/.ssh/gitlab_read_ed25519'
# - name: users | root | clone root_bins
# git:
# repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/root-bin.git'
# dest: "{{ root_home }}/bin"
# key_file: '/root/.ssh/gitlab_read_ed25519'
- name: users | root | link dotfiles
become: yes
become_user: root
file:
state: link
src: "/home/root/dotfiles/{{ item.src }}"
path: "home/root/{{ item.dest }}"
with_items:
- { src: 'vim/vimrc', dest: '.vimrc' }
- { src: 'bash/bashrc', dest: '.bashrc' }
- { src: 'zsh/zshrc', dest: '.zshrc' }
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
# - name: users | root | link dotfiles
# become: yes
# become_user: root
# file:
# state: link
# src: "/home/root/dotfiles/{{ item.src }}"
# path: "home/root/{{ item.dest }}"
# with_items:
# - { src: 'vim/vimrc', dest: '.vimrc' }
# - { src: 'bash/bashrc', dest: '.bashrc' }
# - { src: 'zsh/zshrc', dest: '.zshrc' }
# - { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
######################################################
# Learn Linux TV example