Giter VIP home page Giter VIP logo

ansible-role-proxmox's Introduction

Ansible role Proxmox

Install

ansible-galaxy role install git+https://github.com/sergelogvinov/ansible-role-proxmox.git,main

Install Proxmox

# proxmox.yml

- hosts: all
  vars:
    proxmox_ipset:
      - name: controlplane
        entries:
          - 1.2.3.4
          - 1.2.3.5
      - name: admin
        entries:
          - 1.1.1.1

    proxmox_groups:
      - name: admin
        rules:
          - IN SSH(ACCEPT) -source +admin -log nolog
          - IN ACCEPT -source +admin -p tcp -dport 8006 -log nolog
      - name: controlplane
        rules:
          - IN ACCEPT -source +controlplane -p tcp -dport 8006 -log nolog

    proxmox_rules:
      - IN DNS(ACCEPT) -i vmbr0 -log nolog
      - IN ACCEPT -i vmbr0 -p udp -dport 67 -sport 68 -log nolog
      - IN ACCEPT -p ipv6-icmp -log nolog
      - IN Ping(ACCEPT) -log nolog
      - GROUP admin
      - GROUP controlplane
    proxmox_node_rules:
      - IN NeighborDiscovery(ACCEPT) -i {{ ansible_default_ipv6.interface }} -log nolog

  roles:
    - ansible-role-proxmox
# proxmox.ini

[all]
proxmox   ansible_host=1.2.3.4 ansible_ssh_user=root

Install proxmox to the server

ansible-playbook -Dv -i proxmox.ini proxmox.yml

ansible-role-proxmox's People

Contributors

sergelogvinov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.