Commit e3ad8bdd authored by nanahira's avatar nanahira

fix again

parent 20408daa
Pipeline #14134 failed
...@@ -9,13 +9,15 @@ variables: ...@@ -9,13 +9,15 @@ variables:
stage: test stage: test
tags: tags:
- linux - linux
vars:
usingHost: common
script: script:
- ansible --version - ansible --version
- wget -O - --no-check-certificate https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf - - wget -O - --no-check-certificate https://minio.mycard.moe:9000/nanahira/mitogen-0.2.9.tar.gz | tar zxvf -
- cp tests/ansible.cfg . - cp tests/ansible.cfg .
- chmod 700 . - chmod 700 .
- ansible-playbook tests/test.yml --syntax-check - ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml - ansible-playbook tests/test.yml --limit $usingHost
.debian: .debian:
extends: .base extends: .base
...@@ -34,6 +36,8 @@ ubuntu: ...@@ -34,6 +36,8 @@ ubuntu:
centos7: centos7:
extends: .base extends: .base
image: centos:7 image: centos:7
vars:
usingHost: centos7
before_script: before_script:
- yum -y install epel-release - yum -y install epel-release
- yum -y install tar wget ansible - yum -y install tar wget ansible
......
...@@ -5,18 +5,22 @@ ...@@ -5,18 +5,22 @@
systemd: systemd:
name: sshd name: sshd
state: restarted state: restarted
when: not testing
- name: reload_docker - name: reload_docker
become: true become: true
systemd: systemd:
name: docker name: docker
state: reloaded state: reloaded
when: not testing
- name: restart_docker - name: restart_docker
become: true become: true
systemd: systemd:
name: docker name: docker
state: restarted state: restarted
when: not testing
- name: restart_logind - name: restart_logind
become: true become: true
systemd: systemd:
name: systemd-logind name: systemd-logind
state: restarted state: restarted
when: not testing
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
vm_agents_status: present vm_agents_status: present
china_mirror_omf: true china_mirror_omf: true
testing: true testing: true
ansible_connection: local
hosts: hosts:
localhost: common:
ansible_connection: local centos7:
ansible_python_interpreter: /usr/bin/python
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