Skip to content

Commit

Permalink
use multidoc example in inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 16, 2024
1 parent 5f5ba20 commit 138bc83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ only_builtins_allow_collections:
- theforeman.foreman
exclude_paths:
- meta/runtime.yml
- plugins/inventory/foreman.py
- tests/
- .github/
5 changes: 4 additions & 1 deletion plugins/inventory/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,16 @@
default: ['name']
'''

EXAMPLES = '''
EXAMPLES = r'''
---
# my.foreman.yml
plugin: theforeman.foreman.foreman
url: https://foreman.example.com
user: ansibleinventory
password: changeme
host_filters: 'organization="Web Engineering"'
---
# shortname.foreman.yml
plugin: theforeman.foreman.foreman
url: https://foreman.example.com
Expand All @@ -190,6 +192,7 @@
hostnames:
- name.split('.')[0]
'''

import copy
import json
from ansible_collections.theforeman.foreman.plugins.module_utils._version import LooseVersion
Expand Down

0 comments on commit 138bc83

Please sign in to comment.