{"id":17149832,"url":"https://github.com/tinyblargon/ansible-role-smb-client","last_synced_at":"2025-03-24T11:43:22.683Z","repository":{"id":222024061,"uuid":"753300113","full_name":"Tinyblargon/ansible-role-smb-client","owner":"Tinyblargon","description":"Ansible role to install dependencies for smb and add credentials.","archived":false,"fork":false,"pushed_at":"2024-07-23T16:45:29.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T17:11:28.810Z","etag":null,"topics":["ansible","cifs","smb","smbclient"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/standalone/roles/tinyblargon/smb_client/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tinyblargon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-05T21:09:53.000Z","updated_at":"2024-07-23T16:47:02.000Z","dependencies_parsed_at":"2024-02-11T21:26:51.474Z","dependency_job_id":"f9752995-55d3-4b1c-adf8-6b3977392a15","html_url":"https://github.com/Tinyblargon/ansible-role-smb-client","commit_stats":null,"previous_names":["tinyblargon/ansible-role-smb-client"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-smb-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-smb-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-smb-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-smb-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tinyblargon","download_url":"https://codeload.github.com/Tinyblargon/ansible-role-smb-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245266927,"owners_count":20587452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","cifs","smb","smbclient"],"created_at":"2024-10-14T21:34:13.067Z","updated_at":"2025-03-24T11:43:22.663Z","avatar_url":"https://github.com/Tinyblargon.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: smb client\n\nInstall dependencies for smb and add credentials.\n\n## Requirements\n\nN/A\n\n## Role Variables\n\n### Defaults\n\n| **Variable Name**      | **Type**| **Default Value**     | **Description**|\n| :----------------------| :------:| :--------------------:| :--------------|\n| smb_client_credentials:| list map| []                    | List of credentials, see: [Smb_client_credentials](#smb_client_credentials).|\n| smb_client_folder:     | string  | \"/opt/.smbcredentials\"| The folder in which the credential files will bes stored.|\n| smb_client_remove:     | bool    | false                 | When `true` all unspecified files in `smb_client_folder:` will be removed.|\n| smb_client_state:      | string  | \"present\"             | When `\"present\"` smb client will be installed, and credential file created. When `\"absent\"` smb client and credential files will be removed.|\n\n### Smb_client_credentials\n\n| **Variable Name**| **Required**| **Type**| **Default Value**| **Description**|\n| :----------------| :----------:| :------:| :---------------:| :--------------|\n| name:            | yes         | string  | \"\"               | This is the name of the smb credentails file.|\n| username:        | no          | string  | \"\"               | The username for the SMB connection.|\n| password         | no          | string  | \"\"               | The password for the SMB connection.|\n| domain:          | no          | string  | \"\"               | The domain for the SMB connection.|\n| state:           | no          | string  | \"present\"        | When `\"present\"` the credential file will be created, when `\"absent\"` the credential file will be removed.|\n\n## Dependencies\n\nN/A\n\n## Example Playbook\n\n```yml\n- hosts: all\n  roles:\n    - role: tinyblargon.smb_client\n      vars:\n        smb_client_credentials:\n          - name: \"creds-nas\"\n            username: \"{{ lookup('file', '.secrets/smb-username') }}\"\n            password: \"{{ lookup('file', '.secrets/smb-password') }}\"\n            domain: \"example.com\"\n          - name: \"creds-old\"\n            state: \"absent\"\n        smb_client_remove: true\n        smb_client_state: \"present\"\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyblargon%2Fansible-role-smb-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyblargon%2Fansible-role-smb-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyblargon%2Fansible-role-smb-client/lists"}