From 296f5bb646f8f211449e52d22bc4fd63c012097c Mon Sep 17 00:00:00 2001 From: mg Date: Thu, 1 Apr 2021 21:51:22 +0200 Subject: [PATCH] dotfiles bereinigt (#58) dotfile vars von pve entfernt remove playbook angepasst Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/58 Co-Authored-By: mg Co-Committed-By: mg --- group_vars/proxmox.yml | 12 +--------- playbooks/on-off/remove_dotfiles_dir.yml | 30 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/group_vars/proxmox.yml b/group_vars/proxmox.yml index dc10e16f..e548f8e1 100644 --- a/group_vars/proxmox.yml +++ b/group_vars/proxmox.yml @@ -2,16 +2,6 @@ ### mgrote.apt_install_packages programs_extra: - ifupdown2 - ### geerlingguy.dotfiles - dotfiles_repo: "https://github.com/quotengrote/dotfiles.git" - dotfiles_repo_local_destination: "/home/mg/dotfiles-repo" - dotfiles_home: "/home/mg" - dotfiles_user: "mg" - dotfiles_repo_accept_hostkey: true - dotfiles_files: - - .bash_aliases - - .tmux.conf - - .gitconfig ### mgrote.smart smart_smartctlmail_cron_minutes: "15" smart_smartctlmail_cron_hours: "6" @@ -21,7 +11,6 @@ ### mgrote.apcupsd apcupsd_slave_polltime: 10 #in Sekunden ### geerlingguy.munin-node - ### geerlingguy.munin-node munin_node_bind_host: "0.0.0.0" munin_node_bind_port: "4949" munin_node_allowed_cidrs: [192.168.2.0/24] @@ -60,6 +49,7 @@ - name: cronjobs - name: hddtempd # ersetzt durch hddtemp_smartctl - name: ipmi_power # für pve2, leeres diagramm + # Ansible Variablen ### sudo sudo: false diff --git a/playbooks/on-off/remove_dotfiles_dir.yml b/playbooks/on-off/remove_dotfiles_dir.yml index b838f5dc..09219c12 100644 --- a/playbooks/on-off/remove_dotfiles_dir.yml +++ b/playbooks/on-off/remove_dotfiles_dir.yml @@ -12,6 +12,11 @@ ansible.builtin.file: path: /home/mg/.bash_aliases state: absent + - name: delete /home/mg/.vimrc + become: yes + ansible.builtin.file: + path: /home/mg/.vimrc + state: absent - name: delete /home/mg/.tmux.conf become: yes ansible.builtin.file: @@ -22,3 +27,28 @@ ansible.builtin.file: path: /home/mg/.gitconfig state: absent + - name: delete /root/dotfiles-repo + become: yes + ansible.builtin.file: + path: /root/dotfiles-repo + state: absent + - name: delete /root/.bash_aliases + become: yes + ansible.builtin.file: + path: /root/.bash_aliases + state: absent + - name: delete /root/.tmux.conf + become: yes + ansible.builtin.file: + path: /root/.tmux.conf + state: absent + - name: delete /root/.gitconfig + become: yes + ansible.builtin.file: + path: /root/.gitconfig + state: absent + - name: delete /root/.vimrc + become: yes + ansible.builtin.file: + path: /root/.vimrc + state: absent