Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
88002e89
Commit
88002e89
authored
Jun 05, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update agent status
parent
c627cf65
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
5 deletions
+31
-5
defaults/main.yml
defaults/main.yml
+1
-0
tasks/apt.yml
tasks/apt.yml
+8
-1
tasks/dnf.yml
tasks/dnf.yml
+8
-1
tasks/hypervisor.yml
tasks/hypervisor.yml
+1
-1
tasks/utility.yml
tasks/utility.yml
+1
-1
tasks/yum.yml
tasks/yum.yml
+12
-1
No files found.
defaults/main.yml
View file @
88002e89
...
@@ -16,3 +16,4 @@ pip_executable_install: pip
...
@@ -16,3 +16,4 @@ pip_executable_install: pip
china_mirror_docker
:
false
china_mirror_docker
:
false
china_mirror_pip
:
false
china_mirror_pip
:
false
cpufreq
:
none
cpufreq
:
none
vm_agents_status
:
present
tasks/apt.yml
View file @
88002e89
...
@@ -31,11 +31,18 @@
...
@@ -31,11 +31,18 @@
apt
:
apt
:
name
:
,
python-is-python3,wireguard
name
:
,
python-is-python3,wireguard
when
:
ansible_distribution_release == 'focal'
when
:
ansible_distribution_release == 'focal'
-
name
:
open
vm
tools
-
name
:
open
-vm-
tools
become
:
true
become
:
true
apt
:
apt
:
name
:
open-vm-tools
name
:
open-vm-tools
state
:
'
{{vm_agents_status}}'
when
:
ansible_virtualization_type == "VMware"
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
-
name
:
apt autoremove
become
:
true
become
:
true
apt
:
apt
:
...
...
tasks/dnf.yml
View file @
88002e89
...
@@ -13,11 +13,18 @@
...
@@ -13,11 +13,18 @@
dnf
:
dnf
:
name
:
fish,wireguard-tools
name
:
fish,wireguard-tools
when
:
ansible_distribution == 'Fedora'
when
:
ansible_distribution == 'Fedora'
-
name
:
open
vm
tools
-
name
:
open
-vm-
tools
become
:
true
become
:
true
dnf
:
dnf
:
name
:
open-vm-tools
name
:
open-vm-tools
state
:
'
{{vm_agents_status}}'
when
:
ansible_virtualization_type == "VMware"
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
-
name
:
dnf autoremove
become
:
true
become
:
true
dnf
:
dnf
:
...
...
tasks/hypervisor.yml
View file @
88002e89
...
@@ -10,5 +10,5 @@
...
@@ -10,5 +10,5 @@
content
:
'
{{cpufreq}}'
content
:
'
{{cpufreq}}'
dest
:
'
{{item.path}}/scaling_governor'
dest
:
'
{{item.path}}/scaling_governor'
unsafe_writes
:
true
unsafe_writes
:
true
when
:
'
cpufreq
!=
"none"'
when
:
cpufreq
with_items
:
'
{{freq_list.files}}'
with_items
:
'
{{freq_list.files}}'
tasks/utility.yml
View file @
88002e89
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
-
name
:
clean some Debian packages
-
name
:
clean some Debian packages
become
:
true
become
:
true
apt
:
apt
:
name
:
qemu-guest-agent,
ufw
name
:
ufw
state
:
absent
state
:
absent
autoremove
:
yes
autoremove
:
yes
purge
:
yes
purge
:
yes
...
...
tasks/yum.yml
View file @
88002e89
...
@@ -7,8 +7,19 @@
...
@@ -7,8 +7,19 @@
yum
:
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
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
update_cache
:
yes
-
name
:
open
vm
tools
-
name
:
open
-vm-
tools
become
:
true
become
:
true
yum
:
yum
:
name
:
open-vm-tools
name
:
open-vm-tools
state
:
'
{{vm_agents_status}}'
when
:
ansible_virtualization_type == "VMware"
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment