Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsiryk committed Dec 30, 2016
1 parent 27e3f79 commit a57874d
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 87 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build/
124 changes: 54 additions & 70 deletions Ansible/1_ansible_playbooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,63 @@
Ansible playbook
================

#######################################
---
#Message
- Hosting
– Cloud

#######################################
---
#Message
site: habr
blog: infobox
need_access: no
use_service: yes
file_conf: TRUE
read_value: True
kill_process: false

#######################################
---
#Comment
{site: habr, blog: infobox}

#######################################
---
- hosts: test
tasks:

- name: Install nginx package
apt: name=nginx update_cache=yes
sudo: yes

- name: Starting nginx service
service: name=nginx state=started
sudo: yes


::

---
- hosts: test
tasks:

- name: Install nginx package
apt: name=nginx update_cache=yes
sudo: yes

- name: Starting nginx service
service: name=nginx state=started
sudo: yes

########################################
---
- hosts: test
tasks:

- name: Stopping nginx service
service: name=nginx state=stopped
#sudo: yes

::

---
- hosts: test
tasks:

- name: Stopping nginx service
service: name=nginx state=stopped
#sudo: yes

########################################
# web.yml
---
- hosts: all
user: ubuntu

tasks:
- name: Update apt cache
apt: update_cache=yes
sudo: yes

- name: Install required packages
apt: name={{ item }}
sudo: yes
with_items:
- nginx
- postgresql

``web.yml``::

---
- hosts: all
user: ubuntu

tasks:
- name: Update apt cache
apt: update_cache=yes
sudo: yes

- name: Install required packages
apt: name={{ item }}
sudo: yes
with_items:
- nginx
- postgresql

- name: Add User Pupkin
user: name=’pupkin’

- name: Add User Pupkin
user: name=’pupkin’ shell=’/bin/zsh’ groups=’sudo’

- name: Add BestAdminsTeam
user: name={{ item.user }} shell={{ item.shell }} groups=’sudo’
with_items:
- { user: ‘pupkin’, shell: ‘/bin/zsh’ }
- { user: ‘oldfag’, shell: ‘/bin/sh’ }
- name: Add User Pupkin
user: name=’pupkin’
- name: Add User Pupkin
user: name=’pupkin’ shell=’/bin/zsh’ groups=’sudo’
- name: Add BestAdminsTeam
user: name={{ item.user }} shell={{ item.shell }} groups=’sudo’
with_items:
- { user: ‘pupkin’, shell: ‘/bin/zsh’ }
- { user: ‘oldfag’, shell: ‘/bin/sh’ }


{{ansible_distribution_release}} # codename of release
Expand Down
44 changes: 27 additions & 17 deletions sphinx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ Webhooks::
Syntax
------

:download:`A Detailed Example <conda-cheatsheet.pdf>`
Insert link to download file::

:download:`A Detailed Example <conda-cheatsheet.pdf>`

.. include:: ../README.txt
include::

.. include:: ../README.txt


Some text::
Expand Down Expand Up @@ -132,15 +135,18 @@ the source code from PyPI_::

$ pip install --upgrade --user ase

This will install ASE in a local folder where Python can
automatically find it (``~/.local`` on Unix, see here_ for details). Some
:ref:`cli` will be installed in the following location:

================= ============================
Unix and Mac OS X ``~/.local/bin``
Homebrew ``~/Library/Python/X.Y/bin``
Windows ``%APPDATA%/Python/Scripts``
================= ============================
::

This will install ASE in a local folder where Python can
automatically find it (``~/.local`` on Unix, see here_ for details). Some
:ref:`cli` will be installed in the following location:

================= ============================
Unix and Mac OS X ``~/.local/bin``
Homebrew ``~/Library/Python/X.Y/bin``
Windows ``%APPDATA%/Python/Scripts``
================= ============================

Make sure you have that path in your :envvar:`PATH` environment variable.

Expand Down Expand Up @@ -169,6 +175,8 @@ from Git.

:Tar-file:

::

You can get the source as a `tar-file <http://xkcd.com/1168/>`__ for the
latest stable release (ase-3.12.0.tar.gz_) or the latest
development snapshot (`<snapshot.tar.gz>`_).
Expand Down Expand Up @@ -197,15 +205,17 @@ environment variable (if you don't already have that).

Finally, please `run the tests`_.

.. note::
::

.. note::

We also have Git-tags for older stable versions of ASE.
See the :ref:`releasenotes` for which tags are available. Also the
dates of older releases can be found there.
We also have Git-tags for older stable versions of ASE.
See the :ref:`releasenotes` for which tags are available. Also the
dates of older releases can be found there.

.. _ase-3.12.0.tar.gz: https://pypi.python.org/packages/ab/d4/
4fb1a390d6ca8c4b190285eaecbb0349d3989befd5e670dc14751c715575/
ase-3.12.0.tar.gz
.. _ase-3.12.0.tar.gz: https://pypi.python.org/packages/ab/d4/
4fb1a390d6ca8c4b190285eaecbb0349d3989befd5e670dc14751c715575/
ase-3.12.0.tar.gz


Environment variables
Expand Down

0 comments on commit a57874d

Please sign in to comment.