Commit f885b2df authored by nanahira's avatar nanahira

fixup

parent 6763ad9a
......@@ -68,6 +68,15 @@
dnf:
state: latest
name: sudo,python3,qemu-kvm,qemu-img,libvirt,python3-libvirt,libguestfs-tools,virt-install,python3-lxml,dmidecode,cockpit,cockpit-machines
- name: qemu conf
become: true
blockinfile:
path: /etc/crontab
marker: '# {mark} MyCard NextGen Router block'
block: |
user = "{{ansible_user_id}}"
group = "{{ansible_user_id}}"
notify: restart_libvirt
- name: libvirt service
become: true
systemd:
......@@ -124,6 +133,11 @@
systemd:
name: cockpit
state: restarted
- name: restart_libvirt
become: true
systemd:
name: libvirtd
state: restarted
- name: update_grub
become: true
shell: update-grub
---
- hosts: init
remote_user: nanahira
gather_facts: false
tasks:
- name: sudoers
become: true
copy:
dest: '/etc/sudoers.d/mycard_sudoers_{{ ansible_user_id }}'
content: '{{ ansible_user_id }} ALL=(ALL:ALL) NOPASSWD: ALL'
dest: '/etc/sudoers.d/mycard_sudoers_{{ ansible_ssh_user }}'
content: '{{ ansible_ssh_user }} ALL=(ALL:ALL) NOPASSWD: ALL'
owner: root
group: root
mode: 0700
when: ansible_user_id != 'root'
when: ansible_ssh_user != 'root'
- name: python3-distro
become: true
apt:
name: python3-distro
update_cache: true
ignore_errors: true
......@@ -34,7 +34,7 @@
- name: install pip packages
become: true
pip:
name: ansible==2.9,awscli,jinja2==3.0
name: ansible==2.9.6,awscli,jinja2==3.0.0
state: latest
- name: ansible
synchronize:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment