File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ tomcat_user: tomcat
1515tomcat_group : tomcat
1616tomcat_allow_user_restart : false
1717tomcat_umask : ' 0022'
18+ tomcat_add_user_to_group : false
1819
1920# This will be randomly generated every ansible run if not set
2021tomcat_shutdown_value : ' SETME'
Original file line number Diff line number Diff line change 1717- name : ensure tomcat is installed (rpm)
1818 include_tasks : install_repo.yml
1919 when : tomcat_install_from_repo
20+ tags : ['tomcat']
21+
22+ - name : Add tomcat user to tomcat group if configured
23+ user :
24+ name : " {{ tomcat_user }}"
25+ append : true
26+ groups : ["{{ tomcat_group }}"]
27+ when : tomcat_add_user_to_group
28+ tags : ['tomcat']
2029
2130- set_fact :
2231 tomcat_shutdown_value : " {{ lookup('password', '/dev/null length=20 chars=ascii_letters') }}"
You can’t perform that action at this time.
0 commit comments