Skip to content

Commit

Permalink
ldap---53---更新使用普通用户执行,前提可是用已经配置好 sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eron-Liu committed Jan 31, 2019
1 parent fe766af commit 82082be
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion 01-prepare.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
- hosts: all
roles:
- { role: prepare}
- { role: prepare}
become: true
3 changes: 2 additions & 1 deletion 02-chrony.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
- hosts: all
roles:
- { role: chrony, CHRONY_NTP: true }
- { role: chrony, CHRONY_NTP: true }
become: true
3 changes: 2 additions & 1 deletion 03-server.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
- hosts: server
roles:
- { role: ldap_server, install_server: true, ENABLE_SSL: true}
- { role: ldap_server, install_server: true, ENABLE_SSL: true}
become: true
3 changes: 2 additions & 1 deletion 04-add_plugin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
- hosts: server
roles:
- { role: ldap_expan, add_memberof: true, add_web: true, sudo_ssh: true, ppolicy: true}
- { role: ldap_expan, add_memberof: true, add_web: true, sudo_ssh: true, ppolicy: true}
become: true
3 changes: 3 additions & 0 deletions 05-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
- hosts: clients
roles:
- { role: ldap_client, install_client: true, add_client: false}
- { role: support_ssh_sudo, support: true}
become: true
become_user: root
4 changes: 3 additions & 1 deletion 06-addclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
- { role: prepare}
- { role: chrony, CHRONY_NTP: true}
- { role: ldap_client, install_client: true}
- { role: support_ssh_sudo, support: true}
- { role: support_ssh_sudo, support: true}
become: yes
become_user: root

0 comments on commit 82082be

Please sign in to comment.