Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Commit

Permalink
Implement <Notice />
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed May 15, 2020
1 parent a833d1b commit 4f7aea3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
Expand Up @@ -4,6 +4,9 @@ title: Get started with Ansible in 2 minutes
tags: [Development, Ansible]
description: Provisioning servers is easy using Ansible. Here's a guide to set it up from scratch.
---
<Notice archived>
This post has been written in 2013.
</Notice>

[Ansible](http://ansible.com) is a fantastic tool for provisioning servers. I personally prefer it over Chef, Puppet and Salt. Here's how to get an Ansible project started.

Expand All @@ -16,8 +19,6 @@ brew install ansible # OSX
[sudo] pip install ansible # elsewhere
```

<!-- {.-terminal} -->

## Start your project

Make the directory. Put this under version control, preferrably.
Expand All @@ -27,8 +28,6 @@ Make the directory. Put this under version control, preferrably.
~$ cd setup
```

<!-- {.-terminal} -->

## Create an inventory file

This is a list of hosts you want to manage, grouped into groups. (Hint: try
Expand Down Expand Up @@ -77,8 +76,6 @@ hosts
playbook.yml
```

<!-- {.-terminal} -->

```sh
~/setup$ ansible-playbook -i hosts playbook.yml
PLAY [all] ********************************************************************
Expand All @@ -94,8 +91,6 @@ ok: [127.0.0.1]
...
```

<!-- {.-wide} -->

## Further reading

Ansible's source is available via GitHub: [ansible/ansible](https://github.com/ansible/ansible).
Expand Down
2 changes: 2 additions & 0 deletions src/mdx-components/MyMDXProvider.tsx
Expand Up @@ -3,13 +3,15 @@ import { MDXProvider } from '@mdx-js/react'
import PreCode from './lib/PreCode'
import H2Section from './lib/H2Section'
import NextBlock from './lib/NextBlock'
import Notice from './lib/Notice'
import Figure from './lib/Figure'

const components = {
pre: PreCode,
section: H2Section,
figure: Figure,
NextBlock,
Notice,
Figure,
}

Expand Down
3 changes: 3 additions & 0 deletions src/mdx-components/lib/Notice.module.css
@@ -0,0 +1,3 @@
.root {
@apply px-4 py-2 my-4 bg-yellow-100 text-yellow-900;
}
13 changes: 13 additions & 0 deletions src/mdx-components/lib/Notice.tsx
@@ -0,0 +1,13 @@
import React from 'react'
import CSS from './Notice.module.css'

type Props = {
archived?: boolean
children: React.ReactNode
}

function Notice(props: Props) {
return <div className={CSS.root}>{props.children}</div>
}

export default Notice

0 comments on commit 4f7aea3

Please sign in to comment.