Commit 3ba7a111 authored by nanahira's avatar nanahira

finish

parent 457c44a3
...@@ -5,24 +5,36 @@ ...@@ -5,24 +5,36 @@
# home_path: ~ # home_path: ~
# fork: mycard # fork: mycard
tasks: tasks:
#- name: curl - name: curl
# become: yes
# apt:
# update_cache: true
# state: latest
# name: curl,apt-transport-https
# when: "ansible_distribution != 'CentOS'"
#- name: node source
# become: yes
# shell: 'curl -sL https://deb.nodesource.com/setup_12.x | bash -'
# when: "ansible_distribution != 'CentOS' and "
- name: apt
become: yes become: yes
apt: apt:
update_cache: true update_cache: true
state: latest state: latest
name: curl,wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,mono-complete,npm,redis-server,p7zip-full name: curl,apt-transport-https
when: "ansible_distribution != 'CentOS'" when: "ansible_distribution != 'CentOS'"
- name: node source
become: yes
shell: 'curl -sL https://deb.nodesource.com/setup_12.x | bash -'
when: "(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 18) or (ansible_distribution == 'Debian' and ansible_distribution_major_version|int < 9)"
- name: apt
become: yes
apt:
#update_cache: true
state: latest
name: wget,git,build-essential,libreadline-dev,libsqlite3-dev,libevent-dev,mono-complete,redis-server,p7zip-full
when: "ansible_distribution != 'CentOS'"
- name: nodejs from nodesource
become: yes
apt:
state: latest
name: nodejs
when: "(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 18) or (ansible_distribution == 'Debian' and ansible_distribution_major_version|int < 9)"
- name: nodejs from apt
become: yes
apt:
state: latest
name: npm
when: "(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 18) or (ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 9)"
- name: mono yum key - name: mono yum key
become: yes become: yes
rpm_key: rpm_key:
...@@ -41,13 +53,19 @@ ...@@ -41,13 +53,19 @@
become: true become: true
yum: yum:
state: latest state: latest
name: epel-release update_cache: true
name: epel-release,curl
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
- name: node source
become: true
shell: 'curl -sL https://rpm.nodesource.com/setup_12.x | bash -'
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7" when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
- name: yum - name: yum
become: yes become: yes
yum: yum:
state: latest state: latest
name: curl,wget,git,nodejs,npm,gcc,gcc-c++,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins update_cache: true
name: wget,git,nodejs,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins,tar,unzip
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7" when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7"
- name: epel 8 - name: epel 8
become: true become: true
...@@ -59,7 +77,7 @@ ...@@ -59,7 +77,7 @@
become: true become: true
dnf: dnf:
state: latest state: latest
name: curl,wget,git,nodejs,npm,gcc,gcc-c++,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins name: curl,wget,git,nodejs,npm,gcc,gcc-c++,make,sqlite-devel,readline-devel,openssl-devel,libevent-devel,mono-complete,redis,p7zip,p7zip-plugins,tar,unzip
when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int == 8" when: "ansible_distribution == 'CentOS' and ansible_distribution_major_version|int == 8"
- name: npm - name: npm
become: yes become: yes
...@@ -163,3 +181,9 @@ ...@@ -163,3 +181,9 @@
state: link state: link
src: '{{home_path}}/windbot' src: '{{home_path}}/windbot'
dest: '{{home_path}}/ygopro-server/windbot' dest: '{{home_path}}/ygopro-server/windbot'
- name: stop firewalld
become: true
systemd:
name: firewalld
state: stopped
when: "ansible_distribution == 'CentOS'"
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