/ansible-role-kali

An Ansible role for provisioning kali

Primary LanguageHCLCreative Commons Zero v1.0 UniversalCC0-1.0

ansible-role-kali

GitHub Build Status Total alerts Language grade: Python

An Ansible role for installing the packages required in a CISA VM Kali instance.

Pre-requisites

In order to execute the Molecule tests for this Ansible role in GitHub Actions, a build user must exist in AWS. The accompanying Terraform code will create the user with the appropriate name and permissions. This only needs to be run once per project, per AWS account. This user can also be used to run the Molecule tests on your local machine.

Before the build user can be created, the following profile must exist in your AWS credentials file:

  • cool-terraform-backend

The easiest way to set up that profile is to use our aws-profile-sync utility. Follow the usage instructions in that repository before continuing with the next steps. Note that you will need to know where your team stores their remote profile data in order to use aws-profile-sync.

To create the build user, follow these instructions:

cd terraform
terraform init --upgrade=true
terraform apply

Once the user is created you will need to update the repository's secrets with the new encrypted environment variables. This should be done using the terraform-to-secrets tool available in the development guide. Instructions for how to use this tool can be found in the "Terraform IAM Credentials to GitHub Secrets" section. of the Project Setup README.

If you have appropriate permissions for the repository you can view existing secrets on the appropriate page in the repository's settings.

Requirements

None.

Role Variables

In addition to the variables defined in defaults/main.yml (for which the default values should suffice) this role requires the following variables:

  • gitlab_token - the GitLab personal access token to use when accessing the dns-profile-randomizer private repository

Dependencies

Example Playbook

Here's how to use it in a playbook:

- hosts: all
  become: yes
  become_method: sudo
  roles:
    - kali

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Author Information

Kyle Evers - kyle.evers@trio.dhs.gov