-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created documentation on how to jumpbox w/ ansible documention + copi… #3
base: main
Are you sure you want to change the base?
Conversation
…ed over some files from the prev 2024 ccdc repo
@@ -0,0 +1,3 @@ | |||
sudo apt-add-repository ppa:ansible/ansible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these kind of scripts I prefer if they have a EUID check for sudo and exit early rather than including sudo xyz
this is just my preference.
- name: Copy SSH public key | ||
authorized_key: | ||
user: "alex" | ||
key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}" | ||
state: present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this more generic @P-rple I know Alex wrote it but you copied it over : )
- name: Remove all lines from sshd_config | ||
lineinfile: | ||
path: /etc/ssh/sshd_config | ||
state: absent | ||
regexp: '.*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a bit dangerous for our use case...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for clean starts but still dangerous
tasks: | ||
- name: Copy SSH public key | ||
authorized_key: | ||
user: "alex" | ||
key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}" | ||
state: present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing of making this more generic, probably read from a file and copy all contents over?
…ed over some files from the prev 2024 ccdc repo
Overview of Changes
General overview of what has been changed
Reason for Modification
This section will list the reasons modifications were performed. This justifies why the changes are necessary or the documentation should be added.
Verification
Images
.