Initial Commit - Hatarashi Hako with working Actions
All checks were successful
Ansible Deploy / deploy (push) Successful in 1m1s
All checks were successful
Ansible Deploy / deploy (push) Successful in 1m1s
This commit is contained in:
32
hatarashi-hako.yaml
Normal file
32
hatarashi-hako.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
- hosts: takahe
|
||||
gather_facts: no
|
||||
become: yes
|
||||
vars:
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}"
|
||||
|
||||
tasks:
|
||||
- name: Install Skopeo
|
||||
ansible.builtin.package:
|
||||
name: skopeo
|
||||
state: latest
|
||||
|
||||
- name: Install hatarashi-hako
|
||||
ansible.builtin.copy:
|
||||
src: hatarashi-hako.sh
|
||||
dest: /usr/local/bin/hatarashi-hako.sh
|
||||
mode: 'a+x'
|
||||
|
||||
- name: Template service and timer to host
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: /etc/systemd/system/{{ item }}
|
||||
with_items:
|
||||
- hatarashi-hako.service
|
||||
- hatarashi-hako.timer
|
||||
|
||||
- name: Start hatarashi-hako timer
|
||||
ansible.builtin.systemd:
|
||||
name: hatarashi-hako.timer
|
||||
state: started
|
||||
daemon_reload: true
|
||||
Reference in New Issue
Block a user