Browse Source

修正文件目录

pull/26/head
ibuler 9 years ago
parent
commit
dc547de592
  1. 5
      docs/requirements.txt
  2. 1
      logs/README.md
  3. 17
      playbook/user_perm.yaml
  4. 1
      version

5
docs/requirements.txt

@ -1,6 +1,5 @@
sphinx-me==0.3
django==1.6
python-ldap==2.4.19
pycrypto==2.6.1
paramiko==1.15.2
ecdsa==0.13
@ -9,4 +8,6 @@ django-uuidfield==0.5.0
psutil==2.2.1
xlsxwriter==0.7.7
xlrd==0.9.4
django-bootstrap-form
django-bootstrap-form
tornado
ansible

1
logs/README.md

@ -0,0 +1 @@
永远年轻,永远热泪盈眶

17
playbook/user_perm.yaml

@ -1,17 +0,0 @@
- hosts: the_del_group
tasks:
- name: del user
user: name={{ item }} state=absent remove=yes
with_items: [ the_del_users ]
- hosts: the_new_group
tasks:
- name: add user
user: name={{ item }} state=present
with_items: [ the_new_users ]
- name: .ssh direcotory
file: name=/home/{{ item }}/.ssh mode=700 owner={{ item }} group={{ item }} state=directory
with_items: [ the_new_users ]
- name: set authorizied_file
copy: src=KEY_DIR/{{ item }}.pub dest=/home/{{ item }}/.ssh/authorizied_keys owner={{ item }} group={{ item }} mode=600
with_items: [ the_new_users ]

1
version

@ -1 +0,0 @@
1.1
Loading…
Cancel
Save