Running your EE¶
You can run your EE on the command line against localhost
or a remote target using ansible-navigator
.
There are other tools besides
ansible-navigator
you can run EEs with.
Run against localhost¶
-
Create a
test_localhost.yml
playbook. -
Run the playbook inside the
postgresql_ee
EE.
You may notice the facts being gathered are about the container and not the developer machine. This is because the ansible playbook was run inside the container.
Run against a remote target¶
Before you start, ensure you have the following:
- At least one IP address or resolvable hostname for a remote target.
- Valid credentials for the remote host.
- A user with
sudo
permissions on the remote host.
Execute a playbook inside the postgresql_ee
EE against a remote host machine as in the following example:
-
Create a directory for inventory files.
-
Create the
hosts.yml
inventory file in theinventory
directory. -
Create a
test_remote.yml
playbook. -
Run the playbook inside the
postgresql_ee
EE.Replace
student
with the appropriate username. Some arguments in the command can be optional depending on your target host authentication method.
See also¶
- Execution Environment Definition provides information about the about Execution Environment definition file and available options.
- Ansible Builder CLI usage
- Ansible Navigator documentation
- Running a local container registry for EEs