increased loading time by a bit
This commit is contained in:
@@ -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'`
|
||||
|
||||
Reference in New Issue
Block a user