Skip to content
Snippets Groups Projects
Commit 12f69d33 authored by istmxrein's avatar istmxrein
Browse files

refactor repository

parent ba6867a2
Branches
Tags
No related merge requests found
- name: update hostname - name: Remove snapd
hostname: apt:
name: "{{ new_hostname }}" name: snapd
when: new_hostname is defined purge: true
autoremove: true
state: absent
when: ansible_distribution == 'Ubuntu'
- name: Install System Tools - name: Install System Tools
apt: apt:
pkg: pkg:
- apt-transport-https
- ca-certificates
- gnupg
- software-properties-common
- lsb-release
- debian-archive-keyring
- htop - htop
- nload - nload
- fail2ban - fail2ban
- qemu-user-static
- tmux - tmux
- iotop - iotop
- glances - glances
...@@ -27,11 +35,4 @@ ...@@ -27,11 +35,4 @@
name: fail2ban name: fail2ban
enabled: yes enabled: yes
state: started state: started
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: Remove snapd
apt:
name: snapd
purge: true
autoremove: true
state: absent
when: ansible_distribution == 'Ubuntu'
---
- name: Install System Tools
apt:
pkg:
- qemu-user-static
state: latest
update_cache: yes
install_recommends: no
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- name: install qemu-user-static systemd unit file
copy:
content: |
[Unit]
Description=Run Command on Boot
After=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
[Install]
WantedBy=multi-user.target
dest: /etc/systemd/system/qemu-user-static.service
- name: enable qemu-user-static service
systemd:
name: qemu-user-static
daemon_reload: true
enabled: true
- name: start qemu-user-static service
systemd:
state: restarted
name: qemu-user-static
ignore_errors: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment