{"id":17149834,"url":"https://github.com/tinyblargon/ansible-role-autofs","last_synced_at":"2025-03-24T11:43:23.998Z","repository":{"id":202621901,"uuid":"707627312","full_name":"Tinyblargon/ansible-role-autofs","owner":"Tinyblargon","description":"Install and configure autofs. Creates and removes mountpoints as needed.","archived":false,"fork":false,"pushed_at":"2024-07-23T15:01:37.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T17:11:28.676Z","etag":null,"topics":["ansible","autofs"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/standalone/roles/tinyblargon/autofs/","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":"2023-10-20T10:00:00.000Z","updated_at":"2024-07-23T15:02:51.000Z","dependencies_parsed_at":"2023-10-20T16:46:24.515Z","dependency_job_id":"ac3df797-c2a0-40a4-b93c-fe7043fe7330","html_url":"https://github.com/Tinyblargon/ansible-role-autofs","commit_stats":null,"previous_names":["tinyblargon/ansible-role-autofs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-autofs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-autofs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-autofs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinyblargon%2Fansible-role-autofs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tinyblargon","download_url":"https://codeload.github.com/Tinyblargon/ansible-role-autofs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245266930,"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","autofs"],"created_at":"2024-10-14T21:34:13.759Z","updated_at":"2025-03-24T11:43:23.976Z","avatar_url":"https://github.com/Tinyblargon.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: autofs\n\nInstall and configure autofs. Creates and removes mountpoints as needed.\n\n## Requirements\n\nN/A\n\n## Role Variables\n\n### Defaults\n\n| **Variable Name**       | **Type**| **Default Value**| **Description**|\n| :-----------------------| :------:| :---------------:| :--------------|\n| autofs_maps:            | list map| []               | List of mountpoints, see: [Autofs_maps](#autofs_maps).|\n| autofs_options:         | string  | \"\"               | String of options, these options will be the default for all mountpoints.|\n| autofs_state:           | string  | \"present\"        | When `\"present\"` autofs will be installed, configured and the mount point will be created. When `\"absent\"` autofs and its files and all specified mounts and mountpoints will be removed. |\n| autofs_use_misc_device: | bool    | true             | If `true` `USE_MISC_DEVICE=\"yes\"` in `default/autofs`.|\n| autofs_slash_substitute:| string  | \"~\"              | Character to substitute with `/`. NOTE: don't change this if you already have mountpoints configured.|\n\n### Autofs_maps\n\n| **Variable Name**| **Required**| **Type**| **Default Value**| **Description**|\n| :----------------| :----------:| :------:| :---------------:| :--------------|\n| mountpoint:      | yes         | string  | \"\"               | path to the mountpoint, can also be `\"/-\"`.|\n| options:         | no          | string  | \"\"               | Options for the mountpoint.|\n| mounts:          | no          | list map| []               | List of mounts, see: [Mounts](#mounts). When mounts are added or marked as `absent` autofs will temporarily remove this mountpoint from the config, in order to update the filesystem.|\n| state:           | no          | string  | \"present\"        | When `\"present\"` the mountpoint will be created, when `\"absent\"` the mountpoint and all mounts in it will be removed form the config and file system.|\n\nPlease note that when mounts is empty, the mountpoint will be removed regardless of state is \"`present\"` or `\"absent\"`.\n\n#### Mounts\n\n| **Variable Name**| **Required**| **Type**| **Default Value**| **Description**|\n| :----------------| :----------:| :------:| :---------------:| :--------------|\n| path:            | yes         | string  | \"\"               | Path to the local folder that will act as a mount. Please note that when this is changed the `mountpoint:` will temporarily be removed from the config. |\n| dest:            | yes         | string  | \"\"               | Remote path in autofs syntax, take note that as in the autofs syntax some charters require escaping.|\n| options:         | no          | string  | \"\"               | Options for how to connect to the `dest:`.|\n| state:           | no          | string  | \"present\"        | When `\"present\"` the mount will be created in the file system. when `\"absent\"` the mount will be removed from the file system. please take note that the `mountpoint:` will temporarily be removed from the config.|\n\n## Dependencies\n\nN/A\n\n## Example Playbook\n\n```yaml\n- hosts: all\n  roles:\n    - role: tinyblargon.autofs\n      vars:\n        autofs_maps:\n          - mountpoint: /mnt\n            options: \"--timeout 120\"\n            mounts:\n              - path: backup\n                options: \"-fstype=nfs4,rw,soft,noexec\"\n                dest: \"backup.example.com:/backup\"\n          - mountpoint: /-\n            mounts:\n              - path: \"/var/www\"\n                dest: \"data.example.com:/www\"\n                options: \"-fstype=nfs4,r,soft,noexec\"\n              - path: \"/root/opt\"\n                dest: \"/opt/test\"\n                options: \"-fstype=bind\"\n        autofs_options: \"--timeout 60\"\n        autofs_state: \"present\"\n        autofs_use_misc_device: true\n        autofs_slash_substitute: \"~\"\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyblargon%2Fansible-role-autofs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyblargon%2Fansible-role-autofs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyblargon%2Fansible-role-autofs/lists"}