Ansible-常用数据库模块


Influxdb

  • influxdb_database – Manage InfluxDB databases
  • influxdb_query – Query data points from InfluxDB
  • influxdb_retention_policy – Manage InfluxDB retention policies
  • influxdb_user – Manage InfluxDB users
  • influxdb_write – Write data points into InfluxDB

Mongodb

  • mongodb_parameter – Change an administrative parameter on a MongoDB server
  • mongodb_replicaset – Initialises a MongoDB replicaset
  • mongodb_shard – Add and remove shards from a MongoDB Cluster
  • mongodb_user – Adds or removes a user from a MongoDB database

Mysql

  • mysql_db – Add or remove MySQL databases from a remote host
  • mysql_info – Gather information about MySQL servers
  • mysql_replication – Manage MySQL replication
  • mysql_user – Adds or removes a user from a MySQL database
  • mysql_variables – Manage MySQL global variables

Postgresql

  • postgresql_copy – Copy data between a file/program and a PostgreSQL table
  • postgresql_db – Add or remove PostgreSQL databases from a remote host
  • postgresql_ext – Add or remove PostgreSQL extensions from a database
  • postgresql_idx – Create or drop indexes from a PostgreSQL database
  • postgresql_info – Gather information about PostgreSQL servers
  • postgresql_lang – Adds, removes or changes procedural languages with a PostgreSQL database
  • postgresql_membership – Add or remove PostgreSQL roles from groups
  • postgresql_owner – Change an owner of PostgreSQL database object
  • postgresql_pg_hba – Add, remove or modify a rule in a pg_hba file
  • postgresql_ping – Check remote PostgreSQL server availability
  • postgresql_privs – Grant or revoke privileges on PostgreSQL database objects
  • postgresql_publication – Add, update, or remove PostgreSQL publication
  • postgresql_query – Run PostgreSQL queries
  • postgresql_schema – Add or remove PostgreSQL schema
  • postgresql_sequence – Create, drop, or alter a PostgreSQL sequence
  • postgresql_set – Change a PostgreSQL server configuration parameter
  • postgresql_slot – Add or remove replication slots from a PostgreSQL database
  • postgresql_table – Create, drop, or modify a PostgreSQL table
  • postgresql_tablespace – Add or remove PostgreSQL tablespaces from remote hosts
  • postgresql_user – Add or remove a user (role) from a PostgreSQL server instance