Archive Legacy Setup And Add Ansible Control Plane

This commit is contained in:
Dmitry
2026-07-08 12:47:37 +03:00
parent 841d56380b
commit 4bafa7d09e
203 changed files with 1663 additions and 11 deletions
@@ -0,0 +1,36 @@
- name: Install resticprofile
hosts: servers
become: true
tasks:
- name: Install restic package
ansible.builtin.apt:
name: restic
state: present
update_cache: true
- name: Create restic config directory
ansible.builtin.file:
path: /etc/restic
state: directory
owner: root
group: root
mode: "0755"
- name: Create resticprofile log directory
ansible.builtin.file:
path: /var/log/resticprofile
state: directory
owner: root
group: root
mode: "0755"
- name: Download resticprofile install script
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/creativeprojects/resticprofile/master/install.sh
dest: /tmp/resticprofile-install.sh
mode: "0755"
- name: Install resticprofile binary
ansible.builtin.command:
cmd: /tmp/resticprofile-install.sh -b /usr/local/bin
creates: /usr/local/bin/resticprofile