Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Inspired by Felix Archambault's ansidoc project.
An example generated with ansible-gendoc
.
README.j2
present in folder templates
If you have an existing README.md file in your role, backup it before !
Clone this project and build the image :
git clone
export DOCKER_BUILDKIT=1
docker build . -t ansible-gendoc:0.1.0 -t ansible-gendoc:latest
docker run --user $(id -u):$(id -g) -it ansible-gendoc:latest help
Install the latest version ansible-gendoc
with pip
or pipx
pip install ansible-gendoc
ansible-gendoc --help
Usage: ansible-gendoc [OPTIONS] COMMAND [ARGS]...
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --version -v Show the application's version and exit. │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy │
│ it or customize the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────╮
│ init Copy templates README.j2 from packages in templates/role folder. │
│ render Build the Documentation │
╰──────────────────────────────────────────────────────────────────────────────────╯
To build the documentation roles, you can run these commands :
ansible-gendoc render
.docker run --user $(id -u):$(id -g) -v <path_role>:/role -it ansible-gendoc:latest render role
.To use a personal template, you need to init
the template in the templates
folder of your role. If ansible-gendoc
find an existing file
templates/README.j2
, it will use it to render the README.md file.
ansible-gendoc init
ls templates
README.j2
The template use jinja
as templating
language.
Modify it, for example replace html
or Restructuredtext
or another language.
You can remove some variables too.
The documentation of vars coming soon.
FAQs
Ansible-gendoc build documentation of Ansible Roles.
We found that ansible-gendoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.