with ansible playbook as show:
- name: Create a directory `/config/auth/wireguard` if it does not exist
ansible.builtin.file:
path: /config/auth/wireguard
state: directory
After run the playbook, I got error return:
fatal: [my-vyos]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"follow": true,
"force": false,
"group": null,
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": null,
"path": "/config/auth/wireguard",
"recurse": false,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": false
}
},
"msg": "There was an issue creating /config as requested: [Errno 30] Read-only file system: b'/config'",
"path": "/config/auth/wireguard"
}