# Ansible role infra.osbuild.setup\_server and infra.osbuild.setup\_server

**URL:** <https://forum.ansible.com/t/ansible-role-infra-osbuild-setup-server-and-infra-osbuild-setup-server/10599>\
**Category:** Get Help\
**Tags:** playbook, collections\
**Created:** [October 30, 2024, 9:40pm UTC](https://forum.ansible.com/t/ansible-role-infra-osbuild-setup-server-and-infra-osbuild-setup-server/10599 "2024-10-30T21:40:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsexton18](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dsexton18/32/4952_2.png) [@dsexton18](https://forum.ansible.com/u/dsexton18)\
**Post date:** [October 30, 2024, 9:40pm UTC](https://forum.ansible.com/t/ansible-role-infra-osbuild-setup-server-and-infra-osbuild-setup-server/10599/1 "2024-10-30T21:40:24Z")

</div>

I am stuck trying to get the infra.osbuild.setup\_server role working.

I took the example just to give me something to start with but no luck

> name: Run osbuild\_builder role  
> become: true  
> hosts: all  
> vars:  
> builder\_compose\_type: edge-commit  
> builder\_blueprint\_name: test-blueprint  
> builder\_compose\_pkgs:  
> - vim-enhanced  
> - httpd  
> - ansible-core  
> - tmux  
> builder\_compose\_customizations:  
> user:  
> name: “testuser”  
> description: “test user”  
> password: “testpassword”  
> groups: ‘[“users”, “wheel”]’  
> kernel:  
> append: “nomst=force”  
> services:  
> enabled: [“httpd”, “sshd”, “firewalld”]  
> firewalld.services:  
> enabled: [“ssh”, “https”]  
> tasks:  
> - name: Run the role  
> ansible.builtin.import\_role:  
> name: infra.osbuild.builder

> But I get this error  
> “module\_stdout”: “\r\nTraceback (most recent call last):\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible\_collections/infra/osbuild/plugins/modules/create\_blueprint.py", line 193, in create\_blueprint\r\nAttributeError: ‘Weldr’ object has no attribute ‘toml’\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File "/home/svc\_ansible/.ansible/tmp/ansible-tmp-1730324027.6136236-134880-228518516921309/AnsiballZ\_create\_blueprint.py", line 107, in \r\n \_ansiballz\_main()\r\n File "/home/svc\_ansible/.ansible/tmp/ansible-tmp-1730324027.6136236-134880-228518516921309/AnsiballZ\_create\_blueprint.py", line 99, in \_ansiballz\_main\r\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\r\n File "/home/svc\_ansible/.ansible/tmp/ansible-tmp-1730324027.6136236-134880-228518516921309/AnsiballZ\_create\_blueprint.py", line 47, in invoke\_module\r\n runpy.run\_module(mod\_name=‘ansible\_collections.infra.osbuild.plugins.modules.create\_blueprint’, init\_globals=dict(\_module\_fqn=‘ansible\_collections.infra.osbuild.plugins.modules.create\_blueprint’, \_modlib\_path=modlib\_path),\r\n File "/usr/lib64/python3.9/runpy.py", line 225, in run\_module\r\n return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)\r\n File "/usr/lib64/python3.9/runpy.py", line 97, in \_run\_module\_code\r\n \_run\_code(code, mod\_globals, init\_globals,\r\n File "/usr/lib64/python3.9/runpy.py", line 87, in \_run\_code\r\n exec(code, run\_globals)\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible\_collections/infra/osbuild/plugins/modules/create\_blueprint.py", line 208, in \r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible\_collections/infra/osbuild/plugins/modules/create\_blueprint.py", line 204, in main\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible\_collections/infra/osbuild/plugins/modules/create\_blueprint.py", line 195, in create\_blueprint\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible/module\_utils/basic.py", line 1533, in fail\_json\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible/module\_utils/basic.py", line 1506, in \_return\_formatted\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible/module\_utils/common/parameters.py", line 928, in remove\_values\r\n File "/tmp/ansible\_infra.osbuild.create\_blueprint\_payload\_r87resii/ansible\_infra.osbuild.create\_blueprint\_payload.zip/ansible/module\_utils/common/parameters.py", line 471, in \_remove\_values\_conditions\r\nTypeError: Value of unknown type: \<class ‘AttributeError’\>, ‘Weldr’ object has no attribute ‘toml’\r\n”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

---

<div class="post-metadata">

**Author:** ![dsexton18](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dsexton18/32/4952_2.png) [@dsexton18](https://forum.ansible.com/u/dsexton18)\
**Post date:** [October 30, 2024, 10:28pm UTC](https://forum.ansible.com/t/ansible-role-infra-osbuild-setup-server-and-infra-osbuild-setup-server/10599/2 "2024-10-30T22:28:01Z")

</div>

That and I get

> TASK [create blueprint on host] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [192.168.1.xx]: FAILED! =\> {“changed”: false, “module\_stderr”: "Shared connection
