I think it works, please see my whole yml file.
---
# file: test.yml
- hosts: mytest
gather_facts: yes
roles:
- role: dnsclient
nameservers:
- 1.1.1.1
- 2.2.2.2
- 3.3.3.3
search:
- sh.cn.ao.abcompany.se
- cn.ao.abcompany.se
- ao.abcompany.se
- abcompany.se
- rnd.abcompany.se
# - role: ntp
- role: nsswitch
ensure_vas: present
- role: proxy
group: root
server: 'http://hubproxy.sh.cn.ao.abcompany.se'
port: '8080'
https_server: 'http://hubproxy.sh.cn.ao.abcompany.se'
https_port: '8080'
no_proxy:
- localhost
- 127.0.0.1
# - role: ssh
- role: pam
ensure_vas: present
allowed_users:
- root
- user123
- ALL
limits_fragments:
msdp:
list:
- "* hard nofile 65535"
- "* soft nofile 65535"
- "drutt hard nproc 65535"
- "drutt soft nproc 65535"
- role: vas
username: [email protected]
package_version: '4.1.0-22002'
username: "[email protected]"
keytab_source: 'vasinst.key'
vas_conf_update_process: '/opt/quest/libexec/vas/mapupdate_2307'
users_allow_entries:
- [email protected]
- ABC\cnshrndithub
- ABC\hub-adm-cnsh
computers_ou:
'OU=UNIX,OU=ABC,OU=HUB,OU=P006,OU=SVC,OU=Data,DC=abcompany,DC=se'
users_ou:
'ou=sh,ou=China,ou=users,ou=eunix,dc=eapac,dc=abcompany,dc=se'
nismaps_ou:
'OU=NIS,OU=ABC,OU=HUB,OU=P006,OU=SVC,OU=Data,DC=abcompany,DC=se'
realm: 'ABC.SE'
sitenameoverride: Sapac09
vas_conf_upm_computerou_attr: 'department'
vas_conf_libvas_auth_helper_timeout: '120'
vas_conf_vasd_cross_domain_user_groups_member_search: 'true'
vas_conf_preload_nested_memberships: 'false'
symlink_vastool_binary: 'true'
在 2016年3月29日星期二 UTC+8下午4:03:12,Johannes Kastl写道:
>
> Am 29.03.16 schrieb Cai Elvis:
> > thanks for your quick replay, unfortunately, it works the same like
> before.
>
> >>> my playbook:
> >>> - role: vas
> >>> username: [email protected] <javascript:>
>
> Shouldn't this be like this:
>
> - role: vas
> vars:
> - username: foobar
>
> Johannes
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1903fbe2-2571-4857-9c5f-bafa90203fd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.