mirror of https://github.com/jumpserver/jumpserver
rm tmpfile
parent
9f7b066ca6
commit
fef3879c85
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent remove=yes
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
[del]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent remove=yes
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
[del]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent
|
|
@ -1,4 +0,0 @@
|
|||
[new]
|
||||
[del]
|
||||
127.0.0.1 ansbile_ssh_port=22
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
|
@ -1,10 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
|
@ -1,4 +0,0 @@
|
|||
[new]
|
||||
127.0.0.1 ansbile_ssh_port=22
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent
|
|
@ -1,5 +0,0 @@
|
|||
[new]
|
||||
127.0.0.1 ansbile_ssh_port=22
|
||||
[del]
|
||||
127.0.0.1 ansbile_ssh_port=22
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent
|
|
@ -1,4 +0,0 @@
|
|||
[new]
|
||||
127.0.0.1 ansbile_ssh_port=22
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,10 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: testfd
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent remove=yes
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
[del]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent remove=yes
|
|
@ -1,11 +0,0 @@
|
|||
- hosts: hello world
|
||||
vars:
|
||||
user: testuserssss
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[world]
|
||||
125.39.8.222 ansbile_ssh_port=2234
|
||||
202.106.0.20 ansbile_ssh_port=22
|
||||
[hello]
|
||||
125.39.8.222 ansbile_ssh_port=2234
|
||||
202.106.0.20 ansbile_ssh_port=22
|
|
@ -1,3 +0,0 @@
|
|||
[new]
|
||||
192.168.244.129 ansible_ssh_port=22 ansible_ssh_user=root ansbile_ssh_pass=redhat
|
||||
[del]
|
|
@ -1,17 +0,0 @@
|
|||
- hosts: new
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: add user
|
||||
user: name={{ user }} state=present
|
||||
- name: .ssh direcotory
|
||||
file: name=/home/{{ user }}/.ssh mode=700 owner={{ user }} group={{ user }} state=directory
|
||||
- name: set authorizied_file
|
||||
copy: src=/tmp/id_rsa.pub dest=/home/{{ user }}/.ssh/authorizied_keys owner={{ user }} group={{ user }} mode=600
|
||||
|
||||
- hosts: del
|
||||
vars:
|
||||
user: admin
|
||||
tasks:
|
||||
- name: del user
|
||||
user: name={{ user }} state=absent
|
Loading…
Reference in New Issue