https://github.com/francomile/ansible-role-localhost
Ansible Role Localhost
https://github.com/francomile/ansible-role-localhost
ansible-role loopback-alias networking
Last synced: 15 days ago
JSON representation
Ansible Role Localhost
- Host: GitHub
- URL: https://github.com/francomile/ansible-role-localhost
- Owner: francomile
- License: gpl-2.0
- Created: 2024-06-15T22:27:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T14:46:15.000Z (about 2 years ago)
- Last Synced: 2025-02-25T08:28:10.481Z (over 1 year ago)
- Topics: ansible-role, loopback-alias, networking
- Language: Jinja
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Ansible Localhost Role
[](https://github.com/francomile/ansible-role-localhost/actions/workflows/ansible_lint.yml)
[](https://github.com/francomile/ansible-role-localhost/actions/workflows/push_to_galaxy.yml)
## Actions of the Role
* Create a loopback alias interface (100.64.64.64 by default).
## Common Usage
```yaml
roles:
- {
role: localhost,
localhost_alias_ip: "100.64.64.64",
tags: ["netplan"]
}
```
## Run the playbook
```shell
ansible-playbook -i inventory playbook.yaml -t "localhost"
```