Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

P-rple
Copy link
Contributor

@P-rple P-rple commented Oct 21, 2024

…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

  • [X ] The documentation is completed, or does not contain work-in-progress/partially-completed sections.
  • [X ] The documentation is written in Markdown (Exception for Inject and Incident Reports).
  • [X ] Any Images are contained in a subdirectory Images.
  • [X ] Any scripts, Ansible Playbooks, Terraform scripts, etc. Have documentation explaining their purpose and use case.
  • Any scripts are tested.
  • [] I have assigned and notified a reviewer.

…ed over some files from the prev 2024 ccdc repo
@P-rple P-rple requested a review from a team as a code owner October 21, 2024 21:14
Platform-Linux/1-Ansible/ansible-jumpbox-connection.md Outdated Show resolved Hide resolved
Platform-Linux/1-Ansible/ansible-jumpbox-connection.md Outdated Show resolved Hide resolved
Platform-Linux/1-Ansible/ansible-jumpbox-connection.md Outdated Show resolved Hide resolved
Platform-Linux/1-Ansible/ansible-jumpbox-connection.md Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
sudo apt-add-repository ppa:ansible/ansible
Copy link
Contributor

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.

Comment on lines +38 to +42
- name: Copy SSH public key
authorized_key:
user: "alex"
key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}"
state: present
Copy link
Contributor

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 : )

Comment on lines +44 to +48
- name: Remove all lines from sshd_config
lineinfile:
path: /etc/ssh/sshd_config
state: absent
regexp: '.*'
Copy link
Contributor

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...

Copy link
Contributor

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

Comment on lines +13 to +18
tasks:
- name: Copy SSH public key
authorized_key:
user: "alex"
key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}"
state: present
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants