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
a3245582
Commit
a3245582
authored
Nov 23, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
f5b1423b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
11 deletions
+79
-11
env_srvpro.yml
env_srvpro.yml
+45
-0
hypervisor.yml
hypervisor.yml
+11
-11
manual-fish.yml
manual-fish.yml
+10
-0
nopasswd.yml
nopasswd.yml
+13
-0
No files found.
env_srvpro.yml
0 → 100644
View file @
a3245582
---
-
hosts
:
srvpro
remote_user
:
root
vars
:
# home_path: ~
# fork: mycard
# server_type: public
roles
:
-
name
:
nodejs
vars
:
nodejs_version
:
14
tasks
:
-
name
:
apt
become
:
true
apt
:
update_cache
:
true
state
:
latest
name
:
wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,p7zip-full,liblua5.3-dev
when
:
ansible_os_family == 'Debian'
-
name
:
epel
7
become
:
true
yum
:
state
:
latest
update_cache
:
true
name
:
epel-release,curl
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
-
name
:
yum
become
:
true
yum
:
state
:
latest
update_cache
:
true
name
:
wget,git,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int <=
7
-
name
:
epel
8
become
:
true
dnf
:
state
:
latest
name
:
epel-release
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
-
name
:
dnf
become
:
true
dnf
:
state
:
latest
name
:
curl,wget,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,p7zip,p7zip-plugins,tar,unzip
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
hypervisor.yml
View file @
a3245582
...
...
@@ -2,11 +2,11 @@
-
hosts
:
hypervisor
remote_user
:
root
tasks
:
-
name
:
webvirt ssh key
authorized_key
:
user
:
"
{{
ansible_user_id
}}"
key
:
"
{{
webvirt_ssh_key
}}"
when
:
webvirt_ssh_key
#
- name: webvirt ssh key
#
authorized_key:
#
user: "{{ ansible_user_id }}"
#
key: "{{ webvirt_ssh_key }}"
#
when: webvirt_ssh_key
-
name
:
get cpufreq policy path
find
:
paths
:
...
...
@@ -25,19 +25,19 @@
become
:
true
when
:
ansible_os_family == 'Debian'
apt
:
state
:
latest
#
state: latest
update_cache
:
true
name
:
qemu,qemu-kvm,
libvirt-bin,
bridge-utils,virtinst,libguestfs-tools,ksmtuned,dmidecode,cockpit,cockpit-machines
-
name
:
p
ython
for focal
name
:
qemu,qemu-kvm,bridge-utils,virtinst,libguestfs-tools,ksmtuned,dmidecode,cockpit,cockpit-machines
-
name
:
p
ackages
for focal
become
:
true
when
:
ansible_os_family == 'Debian' and ansible_distribution_release == 'focal'
apt
:
name
:
python3,python-is-python3,python3-libvirt,python3-lxml
-
name
:
p
ython
for non-focal
name
:
python3,python-is-python3,python3-libvirt,python3-lxml
,libvirt-dev
-
name
:
p
ackages
for non-focal
become
:
true
when
:
ansible_os_family == 'Debian' and ansible_distribution_release != 'focal'
apt
:
name
:
python,python-libvirt,python-lxml
name
:
python,python-libvirt,python-lxml
,libvirt-bin
-
name
:
epel
7
become
:
true
yum
:
...
...
manual-fish.yml
0 → 100644
View file @
a3245582
---
-
hosts
:
init
remote_user
:
mycard
vars
:
manual_fish_mode
:
true
tasks
:
-
name
:
fish tasks
include_tasks
:
'
../init/tasks/fish.yml'
-
name
:
git config tasks
include_tasks
:
'
../init/tasks/git_config.yml'
nopasswd.yml
0 → 100644
View file @
a3245582
---
-
hosts
:
init
remote_user
:
nanahira
tasks
:
-
name
:
sudoers
become
:
true
copy
:
dest
:
'
/etc/sudoers.d/mycard_sudoers_{{
ansible_user_id
}}'
content
:
'
{{
ansible_user_id
}}
ALL=(ALL:ALL)
NOPASSWD:
ALL'
owner
:
root
group
:
root
mode
:
0700
when
:
ansible_user_id != 'root'
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