Skip to content

Running the play to install or upgrade Tomcat

Before running - check that you have the following ready:

  • The variables within the role's vars directory (see Setup Templates)
  • The templates within the role's templates directory (see Setup Templates)
  • The tasks directory including main.yml and all sub-tasks that it calls in the role's tasks directory (see Creating Tasks)
  • The ssh public key from the .ssh directory of the user on your ansible host, has been copied to the authorized_keys file of your target host (see Setup SSH public key authentication)

Running the playbook

Once you have your Tomcat role ready (see the remaining pages) out - you would run it as follows:

ansible-playbook site.yml --limit <yourCasServer>

# Example, to run on one server
ansible-playbook site.yml --limit login6devb

# Example, to run on more than one
ansible-playbook site.yml --limit login6deva,login6devb

You may get warnings or errors. You will have to review those.