increased loading time by a bit

This commit is contained in:
2023-09-08 04:15:10 +03:00
parent c571d5d9e5
commit 3c168336d9
3 changed files with 37 additions and 1 deletions

View File

@@ -63,3 +63,12 @@ Example usage:
`secdep -P aws -l --awsregion us-east-2`
`secdep -P aws -a deleteall --awsregion us-east-2`
## Usage with Ansible 🤖
If you have Ansible installed, you can use the hosts file generated by SecDep to run commands on all of the instances simultaneously.
This file is located in the SecDep directory and is being updated every time you create or delete an instance. All instances have a secdep user created and you automatically have an ssh key to use for the connection so as long as you create all instances with or without the `--deploy` flag you can easily use Ansible. That is because this flag calls the hardening script which among the hardening steps changes the default ssh port.
Example usage with ansible from the same directory as the hosts file:
`ansible all -i hosts --private-key=secdep -u secdep -a 'echo "This text was created by Ansible" > /home/secdep/ansible.txt'`