Install provisioning tools in the VM

- Added --diff flag
- Installed virt-manager and ansible
- Removed duplicate software install task
- Removed irrelevant GUI task
This commit is contained in:
Kris Lamoureux 2023-07-11 02:28:23 -04:00
parent f68117d9a0
commit d9608d2d1b
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
4 changed files with 6 additions and 21 deletions

1
Vagrantfile vendored
View File

@ -46,5 +46,6 @@ Vagrant.configure("2") do |config|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles" ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0" ansible.compatibility_mode = "2.0"
ansible.playbook = "site-vagrant.yml" ansible.playbook = "site-vagrant.yml"
ansible.raw_arguments = ["--diff"]
end end
end end

View File

@ -9,8 +9,12 @@ packages:
# Virtualization # Virtualization
- qemu-system - qemu-system
- vagrant-libvirt
- libvirt-daemon-system - libvirt-daemon-system
- vagrant-libvirt
- virt-manager
# Configuration management
- ansible
users: users:
- name: vagrant - name: vagrant

View File

@ -23,11 +23,6 @@
fi fi
loop: "{{ users }}" loop: "{{ users }}"
- name: Install packages
ansible.builtin.apt:
name: "{{ item }}"
loop: "{{ packages }}"
- name: Install sqlite3 - name: Install sqlite3
ansible.builtin.apt: ansible.builtin.apt:
name: sqlite3 name: sqlite3
@ -46,11 +41,3 @@
dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh" dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
mode: a+x mode: a+x
loop: "{{ users }}" loop: "{{ users }}"
- name: Ensure we have our own comment added to /etc/services
ansible.builtin.lineinfile:
path: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
regexp: '^# port for http'
insertbefore: '^www.*80/tcp'
line: '# port for http by default'
loop: "{{ users }}"

View File

@ -14,10 +14,3 @@
create_home: "{{ item.home | default(false) }}" create_home: "{{ item.home | default(false) }}"
loop: "{{ users }}" loop: "{{ users }}"
when: users is defined when: users is defined
- name: Change favorites menu
ansible.builtin.template:
src: favorites.sh.j2
dest: "{{ homedir }}/.config/autostart-scripts/favorites.sh"
mode: a+x
loop: "{{ users }}"