Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
playbooks
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
nanahira
playbooks
Commits
f885b2df
Commit
f885b2df
authored
Jul 02, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
6763ad9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
hypervisor.yml
hypervisor.yml
+14
-0
nopasswd.yml
nopasswd.yml
+10
-3
worker.yml
worker.yml
+1
-1
No files found.
hypervisor.yml
View file @
f885b2df
...
@@ -68,6 +68,15 @@
...
@@ -68,6 +68,15 @@
dnf
:
dnf
:
state
:
latest
state
:
latest
name
:
sudo,python3,qemu-kvm,qemu-img,libvirt,python3-libvirt,libguestfs-tools,virt-install,python3-lxml,dmidecode,cockpit,cockpit-machines
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
-
name
:
libvirt service
become
:
true
become
:
true
systemd
:
systemd
:
...
@@ -124,6 +133,11 @@
...
@@ -124,6 +133,11 @@
systemd
:
systemd
:
name
:
cockpit
name
:
cockpit
state
:
restarted
state
:
restarted
-
name
:
restart_libvirt
become
:
true
systemd
:
name
:
libvirtd
state
:
restarted
-
name
:
update_grub
-
name
:
update_grub
become
:
true
become
:
true
shell
:
update-grub
shell
:
update-grub
nopasswd.yml
View file @
f885b2df
---
---
-
hosts
:
init
-
hosts
:
init
remote_user
:
nanahira
remote_user
:
nanahira
gather_facts
:
false
tasks
:
tasks
:
-
name
:
sudoers
-
name
:
sudoers
become
:
true
become
:
true
copy
:
copy
:
dest
:
'
/etc/sudoers.d/mycard_sudoers_{{
ansible_
user_id
}}'
dest
:
'
/etc/sudoers.d/mycard_sudoers_{{
ansible_
ssh_user
}}'
content
:
'
{{
ansible_
user_id
}}
ALL=(ALL:ALL)
NOPASSWD:
ALL'
content
:
'
{{
ansible_
ssh_user
}}
ALL=(ALL:ALL)
NOPASSWD:
ALL'
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0700
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
worker.yml
View file @
f885b2df
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
-
name
:
install pip packages
-
name
:
install pip packages
become
:
true
become
:
true
pip
:
pip
:
name
:
ansible==2.9
,awscli,jinja2==3.0
name
:
ansible==2.9
.6,awscli,jinja2==3.0.0
state
:
latest
state
:
latest
-
name
:
ansible
-
name
:
ansible
synchronize
:
synchronize
:
...
...
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