Commit 88002e89 authored by nanahira's avatar nanahira

update agent status

parent c627cf65
......@@ -16,3 +16,4 @@ pip_executable_install: pip
china_mirror_docker: false
china_mirror_pip: false
cpufreq: none
vm_agents_status: present
......@@ -31,11 +31,18 @@
apt:
name: ,python-is-python3,wireguard
when: ansible_distribution_release == 'focal'
- name: open vm tools
- name: open-vm-tools
become: true
apt:
name: open-vm-tools
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "VMware"
- name: qemu-guest-agent
become: true
apt:
name: qemu-guest-agent
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "kvm"
- name: apt autoremove
become: true
apt:
......
......@@ -13,11 +13,18 @@
dnf:
name: fish,wireguard-tools
when: ansible_distribution == 'Fedora'
- name: open vm tools
- name: open-vm-tools
become: true
dnf:
name: open-vm-tools
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "VMware"
- name: qemu-guest-agent
become: true
dnf:
name: qemu-guest-agent
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "kvm"
- name: dnf autoremove
become: true
dnf:
......
......@@ -10,5 +10,5 @@
content: '{{cpufreq}}'
dest: '{{item.path}}/scaling_governor'
unsafe_writes: true
when: 'cpufreq != "none"'
when: cpufreq
with_items: '{{freq_list.files}}'
......@@ -85,7 +85,7 @@
- name: clean some Debian packages
become: true
apt:
name: qemu-guest-agent,ufw
name: ufw
state: absent
autoremove: yes
purge: yes
......
......@@ -7,8 +7,19 @@
yum:
name: curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python-pip,python-devel,python3-pip,python3-devel,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,traceroute,tar,unzip,iperf,iperf3,nmap,libselinux-python,mosh,subversion,fish,haveged,mtr,rsync,nfs-utils,ipset # astyle
update_cache: yes
- name: open vm tools
- name: open-vm-tools
become: true
yum:
name: open-vm-tools
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "VMware"
- name: qemu-guest-agent
become: true
yum:
name: qemu-guest-agent
state: '{{vm_agents_status}}'
when: ansible_virtualization_type == "kvm"
- name: yum autoremove
become: true
yum:
autoremove: true
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