Ansible Snippets
Ansible retry a failed job⚑
- command: /usr/bin/false
+ Ansible Snippets - The Blue Book The Blue Book Ansible Snippets Initializing search
- Introduction
- Projects
-
-
-
-
-
-
-
-
-
- Alembic
- asyncio
- aiohttp
- BeautifulSoup
- Boto3
- Click
- Dash
- Dash Leaflet
- DeepDiff
- FactoryBoy
- Faker
- FastAPI
- Flask
- Flask Restplus
- Folium
- Feedparser
- Gettext
- GitPython
- Goodconf
- ICS
- Jinja2
- Maison
- mkdocstrings
- NetworkX
- Pandas
- Passpy
- pexpect
-
-
- Pypika
- Elasticsearch
- python-gnupg
- Python Mysql
- pythonping
- Python Prometheus
-
- Python VLC
- Plotly
- questionary
- rich
- Ruamel YAML
- Selenium
- SQLAlchemy
- sqlite3
- Redis-py
- Requests
- Requests-mock
- Rq
- sh
- Talkey
- Tenacity
- TinyDB
- Typer
- Yoyo
- Type Hints
- Logging
- Code Styling
- Docstrings
- Properties
-
- Lazy loading
- Plugin System
- Profiling
- Optimization
- Anti-Patterns
-
- Internationalization
- Python Snippets
- Data Classes
-
-
- JSON
- SQL
- SQLite
- YAML
- Promql
- Logql
- HTML
- CSS
-
- Latex
- Qwik
- JWT
- React
-
-
- Frontend Development
- Git
- Park programming
- Sponsor
- Issues
-
-
- Forgejo
- Gitea
-
- Helmfile
- Terraform
-
- Ansible Snippets
- Ansible lint skip some rules
- Ansible retry a failed job
- Ansible add a sleep
- Ansible condition that uses a regexp
- Ansible-lint doesn't find requirements
- Run task only once
- Run command on a working directory
- Run handlers in the middle of the tasks file
- Run command idempotently
- Get the correct architecture string
- Check the instances that are going to be affected by playbook run
- Check if variable is defined or empty
- Start and enable a systemd service
- Download a file
- Download an decompress a tar.gz
- Skip ansible-lint for some tasks
- Authorize an SSH key
- Create a user
- Create an ssh key
- Get the hosts of a dynamic ansible inventory
- Speed up the stat module
- Stop running docker containers
- Moving a file remotely
- Molecule
-
-
-
-
-
-
-
-
-
-
-
-
-
- Linux Snippets
- afew
- aleph
- alot
- ActivityWatch
- beancount
- Beets
- Bookwyrm
- brew
- Docker
- dunst
- Dynamic DNS
- elasticsearch
- fail2ban
- ferdium
- finnix
- Gajim
- Gancio
- Github cli
- goaccess
- google chrome
- Gotify
- Chromium
- HAProxy
- Hard drive health
- Hushboard
- hypothesis
- i3wm
- Jellyfin
- ffmpeg
- Khal
- Kitty
- Kodi
- Koel
- LUKS
- Matrix
- mbsync
- Mediatracker
- mkdocs
- Mopidy
- monica
- notmuch
- nodejs
- Oracle Database
- Outrun
- Peek
- Pipx
- Profanity
- retroarch
- rm
- Rocketchat
- sed
- Syncthing
- Libreelec
- Tails
-
- Tahoe-LAFS
- vdirsyncer
-
- VSCodium
- Wake on Lan
- Wallabag
- Wireguard
- Wireshark
- yq
- zip
-
-
-
- Contact
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Ansible lint skip some rules
- Ansible retry a failed job
- Ansible add a sleep
- Ansible condition that uses a regexp
- Ansible-lint doesn't find requirements
- Run task only once
- Run command on a working directory
- Run handlers in the middle of the tasks file
- Run command idempotently
- Get the correct architecture string
- Check the instances that are going to be affected by playbook run
- Check if variable is defined or empty
- Start and enable a systemd service
- Download a file
- Download an decompress a tar.gz
- Skip ansible-lint for some tasks
- Authorize an SSH key
- Create a user
- Create an ssh key
- Get the hosts of a dynamic ansible inventory
- Speed up the stat module
- Stop running docker containers
- Moving a file remotely
Ansible Snippets
Ansible lint skip some rules⚑
Add a .ansible-lint-ignore
file with a line per rule to ignore with the syntax path/to/file rule_to_ignore
.
Ansible retry a failed job⚑
- command: /usr/bin/false
retries: 3
delay: 3
register: result
@@ -199,4 +199,4 @@
- name: Move foo to bar
command: mv /path/to/foo /path/to/bar
when: foo_stat.stat.exists
-
Last update: 2023-10-19
\ No newline at end of file
+
Last update: 2023-11-27