Commit a3245582 authored by nanahira's avatar nanahira

updates

parent f5b1423b
---
- 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
......@@ -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: python for focal
name: qemu,qemu-kvm,bridge-utils,virtinst,libguestfs-tools,ksmtuned,dmidecode,cockpit,cockpit-machines
- name: packages 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: python for non-focal
name: python3,python-is-python3,python3-libvirt,python3-lxml,libvirt-dev
- name: packages 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:
......
---
- 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'
---
- 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'
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