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

Add Kali backport #180

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

josephcardillo-akamai
Copy link
Collaborator

No description provided.

Comment on lines +8 to +10
- name: Update apt cache
apt:
update_cache: yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this task. This is redundant with the next task.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that we should have in this file is import_tasks. Break everything out into their own task file if possible to stick to the standard.

Comment on lines +12 to +26
- name: Create VNC user
user:
name: "{{ vnc_username }}"
password: "{{ vnc_password | password_hash('sha512') }}"
shell: /bin/bash

- name: Set up VNC password
expect:
command: vncserver
responses:
Password: "{{ vnc_password }}"
Verify: "{{ vnc_password }}"
"Would you like to enter a view-only password (y/n)?": "n"
become: yes
become_user: "{{ vnc_username }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This output to the log. Use no_log to avoid leaking secrets to the stackscript log.

kali_package: "{{ 'kali-linux-everything' if '${EVERYTHING}' == 'Yes' else 'kali-linux-headless' if '${HEADLESS}' == 'Yes' else '' }}"

# VNC settings
vnc_enabled: "{{ '${VNC}' == 'Yes' }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are making boolean conditional in the playbook. This is a string. We need to translate 'Yes' or 'No' to either be True or False in the vars file.

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