Comments (7)
Perfect thanks!. Your example is working on my local computer.
The issue is with the latest version of graphviz. It should work with an older version of graphiz. Try this: pip install graphviz==0.17
.
I will check later graphviz CHANGELOG to see what changed in 0.18
from ansible-playbook-grapher.
Content of the yml
- name: Validate Time Sync
hosts: tag_os_windows:!tag_Role_AD
ignore_errors: True
vars_files:
- vars/tenant.yml
vars:
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
tasks:
- name: Check w32tm status
win_shell: (Get-Service w32Time).Status
register: w32tm_status
- name: Check time sync block
block:
- name: Check time sync
win_shell: (w32tm /query /status )[7].trimStart('Source:').Trim().substring(5)
register: timeSource
- name: Get Domain
win_shell: (wmic computersystem get domain)[2].Trim()
register: getDomain
- name: Time Sync Result
set_fact:
time_sync_status_vm: "{% if timeSource.stdout == getDomain.stdout %}Success{% else %}Failed{% endif %}"
when: w32tm_status.stdout_lines[0] == 'Running'
- name: Save hostname when VM Time Sync check failed
set_fact:
temp_host: "{{ hostvars[inventory_hostname].tags.Name }}"
when: time_sync_status_vm == 'Failed' or w32tm_status.stdout_lines[0] != 'Running'
- name: Save hostname when VM Time Sync check success
set_fact:
temp_host: null
when: time_sync_status_vm == 'Success'
from ansible-playbook-grapher.
Hi. Can you try with the latest version on main: pip install ansible-playbook-grapher==1.0.0.dev3
? I have made several changes that will be released in the next major version
from ansible-playbook-grapher.
This is what I got after the update
from ansible-playbook-grapher.
I suspect a bug with graphviz. My tests in CI are failing with the same messages: https://github.com/haidaraM/ansible-playbook-grapher/runs/4131881442?check_suite_focus=true
Can you send me a pip freeze ?
from ansible-playbook-grapher.
Here it is:
ansible==4.8.0
ansible-core==2.11.6
ansible-playbook-grapher==1.0.0.dev3
attrs==19.3.0
Automat==0.8.0
blinker==1.4
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cloud-init==21.2
colorama==0.4.3
colour==0.1.5
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
cryptography==2.8
dbus-python==1.2.16
distro==1.4.0
distro-info===0.23ubuntu1
entrypoints==0.3
graphviz==0.18
httplib2==0.14.0
hyperlink==19.0.0
idna==2.8
importlib-metadata==1.5.0
incremental==16.10.1
Jinja2==2.10.1
jsonpatch==1.22
jsonpointer==2.0
jsonschema==3.2.0
keyring==18.0.1
language-selector==0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
lxml==4.6.4
MarkupSafe==1.1.0
more-itertools==4.2.0
netifaces==0.10.4
oauthlib==3.1.0
packaging==21.2
pexpect==4.6.0
pyasn1==0.4.2
pyasn1-modules==0.2.1
PyGObject==3.36.0
PyHamcrest==1.9.0
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyOpenSSL==19.0.0
pyparsing==2.4.7
pyrsistent==0.15.5
pyserial==3.4
python-apt==2.0.0+ubuntu0.20.4.5
python-debian===0.1.36ubuntu1
PyYAML==5.3.1
requests==2.22.0
requests-unixsocket==0.2.0
resolvelib==0.5.4
SecretStorage==2.3.1
service-identity==18.1.0
simplejson==3.16.0
six==1.14.0
sos==4.1
ssh-import-id==5.10
systemd-python==234
Twisted==18.9.0
ubuntu-advantage-tools==27.2
ufw==0.36
unattended-upgrades==0.1
urllib3==1.25.8
wadllib==1.3.3
zipp==1.0.0
zope.interface==4.7.1
from ansible-playbook-grapher.
Released two versions: 1.0.0.dev4 and 0.11.2 with the fix.
from ansible-playbook-grapher.
Related Issues (20)
- [Feature request] Add rendered graphs to pull requests
- [Feature request] Multiple playbooks in one graph HOT 6
- [Bug report] ansible-playbook-grapher doesnt work with ansible-core 2.13.1
- After upgrading from 1.1.2 to 1.1.3 HOT 5
- [Bug report] Fix Maximum call stack size exceeded
- ansible-playbook-grapher fails with different errors in different versions after upgrading from 1.1.2 to 1.2.0 HOT 3
- [Feature request] Variable mapping option HOT 2
- [Feature request] generate mermaid instead of images HOT 7
- [Bug report] Please bump version of ansible-core HOT 8
- [Feature request] Include inventory graphing and make this the ansible-super-grapher
- [Feature request] Version Bump :) HOT 2
- [Feature request] Automage releases via Github
- Does the tool have run playbooks first? HOT 3
- [Feature request] Add a key to hide plays(tasks) without any role HOT 11
- [Bug report] No support for playbooks using `import_tasks` HOT 2
- [Feature request] Add JSON renderer for later consumption by third party tools
- [Bug report] Graphviz : properly rank the edges
- [Feature request] Support for blocks in pre_tasks. HOT 13
- [Bug report] Graphviz Rendering: improvements for large number of plays and tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-playbook-grapher.