{"id":16709295,"url":"https://github.com/mrlesmithjr/ansible-docker-swarm","last_synced_at":"2025-04-10T05:34:06.651Z","repository":{"id":142637088,"uuid":"79526828","full_name":"mrlesmithjr/ansible-docker-swarm","owner":"mrlesmithjr","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-16T03:06:28.000Z","size":10,"stargazers_count":7,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T06:51:47.670Z","etag":null,"topics":["ansible","docker"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrlesmithjr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-20T05:00:08.000Z","updated_at":"2023-12-16T03:06:33.000Z","dependencies_parsed_at":"2023-12-16T04:45:59.419Z","dependency_job_id":"65671316-f3be-4263-8d55-64dcd9a4c2b3","html_url":"https://github.com/mrlesmithjr/ansible-docker-swarm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-docker-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-docker-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-docker-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlesmithjr%2Fansible-docker-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrlesmithjr","download_url":"https://codeload.github.com/mrlesmithjr/ansible-docker-swarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248163295,"owners_count":21057905,"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","docker"],"created_at":"2024-10-12T20:04:28.696Z","updated_at":"2025-04-10T05:34:06.599Z","avatar_url":"https://github.com/mrlesmithjr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Role Name\n=========\n\nAn [Ansible] role to provision a [Docker] swarm cluster.\n\nRequirements\n------------\n\nInstall [Ansible] roles required:\n```\nsudo ansible-galaxy install -r requirements.yml\n```\n\nRole Variables\n--------------\n\n```\n---\n---\n# defaults file for ansible-docker-swarm\n\n# Define Docker interface to auto fill `docker_swarm_addr`\ndocker_swarm_interface: \"enp0s8\"\n\n# Define Docker swarm listen and advertise address\ndocker_swarm_addr: \"{{ hostvars[inventory_hostname]['ansible_' + docker_swarm_interface]['ipv4']['address'] }}\"\n\n# Define Docker swarm listen port\ndocker_swarm_port: \"2377\"\n\n# Define Docker swarm data path port\ndocker_swarm_data_path_port: ''\n\n\n# Define Ansible group which contains your Docker swarm managers\ndocker_swarm_managers_ansible_group: 'docker-swarm-managers'\n\n# Define Ansible group which contains you Docker swarm workers\ndocker_swarm_workers_ansible_group: 'docker-swarm-workers'\n\n# Defines first node in docker_swarm_managers_ansible_group as primary\ndocker_swarm_primary_manager: '{{ groups[docker_swarm_managers_ansible_group][0] }}'\n\n\n# Define Docker swarm network customizations\ndocker_swarm_config_networks: false\n\n# Network: see community.docker.docker_network\ndocker_swarm_networks: []\n  # - name: 'my_net'\n  #   driver: 'overlay'\n  #   state: 'present'\n  # - name: 'test'\n  #   driver: 'overlay'\n  #   state: 'absent'\n\n\n# Define Docker swarm setting customizations\ndocker_swarm_config_settings: false\n\n# Setting: Validity period for node certificates (default 2160h0m0s)\ndocker_swarm_cert_expiry: '2160h0m0s'\n\n# Setting: Dispatcher heartbeat period (default 5s)\ndocker_swarm_dispatcher_heartbeat_duration: '5s'\n\n# Setting: Task history retention limit (default 5)\ndocker_swarm_task_history_limit: '5'\n```\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\n```\n- hosts: docker_hosts\n  become: true\n  vars:\n  roles:\n    - role: ansible-docker\n    - role: ansible-docker-swarm\n  tasks:\n```\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\n\nLarry Smith Jr.\n- @mrlesmithjr\n- http://everythingshouldbevirtual.com\n- mrlesmithjr [at] gmail.com\n\n[Ansible]: \u003chttps://www.ansible.com\u003e\n[Docker]: \u003chttps://www.docker.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-docker-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrlesmithjr%2Fansible-docker-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlesmithjr%2Fansible-docker-swarm/lists"}